home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / CIncludes / GXPrinting.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-06  |  155.6 KB  |  4,493 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        GXPrinting.h
  3.  
  4.      Contains:    This file contains all printing APIs except for driver/extension specific ones.
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __GXPRINTING__
  21. #define __GXPRINTING__
  22.  
  23.  
  24. #ifndef __COLLECTIONS__
  25. #include <Collections.h>
  26. #endif
  27. /*    #include <Types.h>                                            */
  28. /*        #include <ConditionalMacros.h>                            */
  29. /*    #include <MixedMode.h>                                        */
  30.  
  31. #ifndef __CONDITIONALMACROS__
  32. #include <ConditionalMacros.h>
  33. #endif
  34.  
  35. #ifndef __DIALOGS__
  36. #include <Dialogs.h>
  37. #endif
  38. /*    #include <Errors.h>                                            */
  39. /*    #include <Memory.h>                                            */
  40. /*    #include <Menus.h>                                            */
  41. /*        #include <Quickdraw.h>                                    */
  42. /*            #include <QuickdrawText.h>                            */
  43. /*    #include <Controls.h>                                        */
  44. /*    #include <Windows.h>                                        */
  45. /*        #include <Events.h>                                        */
  46. /*            #include <OSUtils.h>                                */
  47. /*    #include <TextEdit.h>                                        */
  48.  
  49. #ifndef __ERRORS__
  50. #include <Errors.h>
  51. #endif
  52.  
  53. #ifndef __FILES__
  54. #include <Files.h>
  55. #endif
  56. /*    #include <Finder.h>                                            */
  57.  
  58. #ifndef __GXFONTS__
  59. #include <GXFonts.h>
  60. #endif
  61. /*    #include <GXMath.h>                                            */
  62. /*        #include <FixMath.h>                                    */
  63. /*    #include <GXTypes.h>                                        */
  64. /*    #include <ScalerTypes.h>                                    */
  65. /*        #include <SFNTTypes.h>                                    */
  66.  
  67. #ifndef __GXMATH__
  68. #include <GXMath.h>
  69. #endif
  70.  
  71. #ifndef __GXTYPES__
  72. #include <GXTypes.h>
  73. #endif
  74.  
  75. #ifndef __LISTS__
  76. #include <Lists.h>
  77. #endif
  78.  
  79. #ifndef __MENUS__
  80. #include <Menus.h>
  81. #endif
  82.  
  83. #ifndef __GXMESSAGES__
  84. #include <GXMessages.h>
  85. #endif
  86.  
  87. #ifndef __PRINTING__
  88. #include <Printing.h>
  89. #endif
  90.  
  91. #ifndef __QUICKDRAW__
  92. #include <Quickdraw.h>
  93. #endif
  94.  
  95. #ifdef __cplusplus
  96. extern "C" {
  97. #endif
  98.  
  99. #if PRAGMA_ALIGN_SUPPORTED
  100. #pragma options align=mac68k
  101. #endif
  102.  
  103. #if PRAGMA_IMPORT_SUPPORTED
  104. #pragma import on
  105. #endif
  106.  
  107.  
  108. enum {
  109.     gestaltGXPrintingMgrVersion    = 'pmgr',
  110.     gestaltGXVersion            = 'qdgx'
  111. };
  112.  
  113. typedef unsigned long gxOwnerSignature;
  114.  
  115. #if OLDROUTINENAMES
  116. typedef unsigned long Signature;
  117.  
  118. #endif
  119. typedef struct gxPrivatePrinterRecord *gxPrinter;
  120.  
  121. typedef struct gxPrivateJobRecord *gxJob;
  122.  
  123. typedef struct gxPrivateFormatRecord *gxFormat;
  124.  
  125. typedef struct gxPrivatePaperTypeRecord *gxPaperType;
  126.  
  127. typedef struct gxPrivatePrintFileRecord *gxPrintFile;
  128.  
  129. typedef Boolean gxLoopStatus;
  130.  
  131.  
  132. enum {
  133.     gxStopLooping                = false,
  134.     gxKeepLooping                = true
  135. };
  136.  
  137. typedef pascal gxLoopStatus (*gxViewDeviceProcPtr)(gxViewDevice aViewDevice, void *refCon);
  138.  
  139. #if GENERATINGCFM
  140. typedef UniversalProcPtr gxViewDeviceUPP;
  141. #else
  142. typedef gxViewDeviceProcPtr gxViewDeviceUPP;
  143. #endif
  144.  
  145. enum {
  146.     uppgxViewDeviceProcInfo = kPascalStackBased
  147.          | RESULT_SIZE(SIZE_CODE(sizeof(gxLoopStatus)))
  148.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxViewDevice)))
  149.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(void*)))
  150. };
  151.  
  152. #if GENERATINGCFM
  153. #define NewgxViewDeviceProc(userRoutine)        \
  154.         (gxViewDeviceUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxViewDeviceProcInfo, GetCurrentArchitecture())
  155. #else
  156. #define NewgxViewDeviceProc(userRoutine)        \
  157.         ((gxViewDeviceUPP) (userRoutine))
  158. #endif
  159.  
  160. #if GENERATINGCFM
  161. #define CallgxViewDeviceProc(userRoutine, aViewDevice, refCon)        \
  162.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppgxViewDeviceProcInfo, (aViewDevice), (refCon))
  163. #else
  164. #define CallgxViewDeviceProc(userRoutine, aViewDevice, refCon)        \
  165.         (*(userRoutine))((aViewDevice), (refCon))
  166. #endif
  167.  
  168. typedef pascal gxLoopStatus (*gxFormatProcPtr)(gxFormat aFormat, void *refCon);
  169.  
  170. #if GENERATINGCFM
  171. typedef UniversalProcPtr gxFormatUPP;
  172. #else
  173. typedef gxFormatProcPtr gxFormatUPP;
  174. #endif
  175.  
  176. enum {
  177.     uppgxFormatProcInfo = kPascalStackBased
  178.          | RESULT_SIZE(SIZE_CODE(sizeof(gxLoopStatus)))
  179.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxFormat)))
  180.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(void*)))
  181. };
  182.  
  183. #if GENERATINGCFM
  184. #define NewgxFormatProc(userRoutine)        \
  185.         (gxFormatUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxFormatProcInfo, GetCurrentArchitecture())
  186. #else
  187. #define NewgxFormatProc(userRoutine)        \
  188.         ((gxFormatUPP) (userRoutine))
  189. #endif
  190.  
  191. #if GENERATINGCFM
  192. #define CallgxFormatProc(userRoutine, aFormat, refCon)        \
  193.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppgxFormatProcInfo, (aFormat), (refCon))
  194. #else
  195. #define CallgxFormatProc(userRoutine, aFormat, refCon)        \
  196.         (*(userRoutine))((aFormat), (refCon))
  197. #endif
  198.  
  199. typedef pascal gxLoopStatus (*gxPaperTypeProcPtr)(gxPaperType aPapertype, void *refCon);
  200.  
  201. #if GENERATINGCFM
  202. typedef UniversalProcPtr gxPaperTypeUPP;
  203. #else
  204. typedef gxPaperTypeProcPtr gxPaperTypeUPP;
  205. #endif
  206.  
  207. enum {
  208.     uppgxPaperTypeProcInfo = kPascalStackBased
  209.          | RESULT_SIZE(SIZE_CODE(sizeof(gxLoopStatus)))
  210.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxPaperType)))
  211.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(void*)))
  212. };
  213.  
  214. #if GENERATINGCFM
  215. #define NewgxPaperTypeProc(userRoutine)        \
  216.         (gxPaperTypeUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxPaperTypeProcInfo, GetCurrentArchitecture())
  217. #else
  218. #define NewgxPaperTypeProc(userRoutine)        \
  219.         ((gxPaperTypeUPP) (userRoutine))
  220. #endif
  221.  
  222. #if GENERATINGCFM
  223. #define CallgxPaperTypeProc(userRoutine, aPapertype, refCon)        \
  224.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppgxPaperTypeProcInfo, (aPapertype), (refCon))
  225. #else
  226. #define CallgxPaperTypeProc(userRoutine, aPapertype, refCon)        \
  227.         (*(userRoutine))((aPapertype), (refCon))
  228. #endif
  229.  
  230. typedef pascal OSErr (*gxPrintingFlattenProcPtr)(long size, void *data, void *refCon);
  231.  
  232. #if GENERATINGCFM
  233. typedef UniversalProcPtr gxPrintingFlattenUPP;
  234. #else
  235. typedef gxPrintingFlattenProcPtr gxPrintingFlattenUPP;
  236. #endif
  237.  
  238. enum {
  239.     uppgxPrintingFlattenProcInfo = kPascalStackBased
  240.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  241.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(long)))
  242.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(void*)))
  243.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(void*)))
  244. };
  245.  
  246. #if GENERATINGCFM
  247. #define NewgxPrintingFlattenProc(userRoutine)        \
  248.         (gxPrintingFlattenUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxPrintingFlattenProcInfo, GetCurrentArchitecture())
  249. #else
  250. #define NewgxPrintingFlattenProc(userRoutine)        \
  251.         ((gxPrintingFlattenUPP) (userRoutine))
  252. #endif
  253.  
  254. #if GENERATINGCFM
  255. #define CallgxPrintingFlattenProc(userRoutine, size, data, refCon)        \
  256.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppgxPrintingFlattenProcInfo, (size), (data), (refCon))
  257. #else
  258. #define CallgxPrintingFlattenProc(userRoutine, size, data, refCon)        \
  259.         (*(userRoutine))((size), (data), (refCon))
  260. #endif
  261.  
  262. typedef gxViewDeviceProcPtr gxViewDeviceProc;
  263.  
  264. typedef gxFormatProcPtr gxFormatProc;
  265.  
  266. typedef gxPaperTypeProcPtr gxPaperTypeProc;
  267.  
  268. typedef gxPrintingFlattenProcPtr gxPrintingFlattenProc;
  269.  
  270. /*
  271.     The following constants are used to set collection item flags in printing
  272.     collections. The Printing Manager purges certain items whenever a driver
  273.     switch occurs. If the formatting driver changes, all items marked as
  274.     gxVolatileFormattingDriverCategory will be purged.  If the output driver
  275.     changes, all items marked as gxVolatileOutputDriverCategory will be purged.
  276.     Note that to prevent items from being flattened when GXFlattenJob is called,
  277.     you should unset the collectionPersistenceBit (defined in Collections.h),
  278.     which is on by default.
  279. */
  280. /* Structure stored in collection items' user attribute bits */
  281. typedef short gxCollectionCategory;
  282.  
  283.  
  284. enum {
  285.     gxNoCollectionCategory        = (gxCollectionCategory)0x0000,
  286.     gxOutputDriverCategory        = (gxCollectionCategory)0x0001,
  287.     gxFormattingDriverCategory    = (gxCollectionCategory)0x0002,
  288.     gxDriverVolatileCategory    = (gxCollectionCategory)0x0004,
  289.     gxVolatileOutputDriverCategory = gxOutputDriverCategory + gxDriverVolatileCategory,
  290.     gxVolatileFormattingDriverCategory = gxFormattingDriverCategory + gxDriverVolatileCategory
  291. };
  292.  
  293. /*
  294.  
  295.     >>>>>> JOB COLLECTION ITEMS <<<<<<
  296.  
  297. */
  298. /* gxJobInfo COLLECTION ITEM */
  299. enum {
  300.     gxJobTag                    = 'job '
  301. };
  302.  
  303. struct gxJobInfo {
  304.     long                            numPages;                    /* Number of pages in the document */
  305.     long                            priority;                    /* Priority of this job plus "is it on hold?" */
  306.     unsigned long                    timeToPrint;                /* When to print job, if scheduled */
  307.     long                            jobTimeout;                    /* Timeout value, in ticks */
  308.     long                            firstPageToPrint;            /* Start printing from this page */
  309.     short                            jobAlert;                    /* How to alert user when printing */
  310.     Str31                            appName;                    /* Which application printed the document */
  311.     Str31                            documentName;                /* The name of the document being printed */
  312.     Str31                            userName;                    /* The owner name of the machine that printed the document */
  313. };
  314. typedef struct gxJobInfo gxJobInfo;
  315.  
  316. /* priority field constants */
  317.  
  318. enum {
  319.     gxPrintJobHoldingBit        = 0x00001000                    /* This bit is set if the job is on hold. */
  320. };
  321.  
  322. enum {
  323.     gxPrintJobUrgent            = 0x00000001,
  324.     gxPrintJobAtTime            = 0x00000002,
  325.     gxPrintJobASAP                = 0x00000003,
  326.     gxPrintJobHolding            = (gxPrintJobHoldingBit + gxPrintJobASAP),
  327.     gxPrintJobHoldingAtTime        = (gxPrintJobHoldingBit + gxPrintJobAtTime),
  328.     gxPrintJobHoldingUrgent        = (gxPrintJobHoldingBit + gxPrintJobUrgent)
  329. };
  330.  
  331. /* jobAlert field constants */
  332. enum {
  333.     gxNoPrintTimeAlert            = 0,                            /* Don't alert user when we print */
  334.     gxAlertBefore                = 1,                            /* Alert user before we print */
  335.     gxAlertAfter                = 2,                            /* Alert user after we print */
  336.     gxAlertBothTimes            = 3                                /* Alert before and after we print */
  337. };
  338.  
  339. /* jobTimeout field constants */
  340. enum {
  341.     gxThirtySeconds                = 1800,                            /* 30 seconds in ticks */
  342.     gxTwoMinutes                = 7200                            /* 2 minutes in ticks */
  343. };
  344.  
  345. /* gxCollationTag COLLECTION ITEM */
  346. enum {
  347.     gxCollationTag                = 'sort'
  348. };
  349.  
  350. struct gxCollationInfo {
  351.     Boolean                            collation;                    /* True if copies are to be collated */
  352.     char                            padByte;
  353. };
  354. typedef struct gxCollationInfo gxCollationInfo;
  355.  
  356. /* gxCopiesTag COLLECTION ITEM */
  357.  
  358. enum {
  359.     gxCopiesTag                    = 'copy'
  360. };
  361.  
  362. struct gxCopiesInfo {
  363.     long                            copies;                        /* Number of copies of the document to print */
  364. };
  365. typedef struct gxCopiesInfo gxCopiesInfo;
  366.  
  367. /* gxPageRangeTag COLLECTION ITEM */
  368.  
  369. enum {
  370.     gxPageRangeTag                = 'rang'
  371. };
  372.  
  373. struct gxSimplePageRangeInfo {
  374.     char                            optionChosen;                /* From options listed below */
  375.     Boolean                            printAll;                    /* True if user wants to print all pages */
  376.     long                            fromPage;                    /* For gxDefaultPageRange, current value */
  377.     long                            toPage;                        /* For gxDefaultPageRange, current value */
  378. };
  379. typedef struct gxSimplePageRangeInfo gxSimplePageRangeInfo;
  380.  
  381. struct gxPageRangeInfo {
  382.     gxSimplePageRangeInfo            simpleRange;                /* Info which will be returned for GetJobPageRange */
  383.     Str31                            fromString;                    /* For gxCustomizePageRange, current value */
  384.     Str31                            toString;                    /* For gxCustomizePageRange, current value */
  385.     long                            minFromPage;                /* For gxDefaultPageRange, we parse with this, ignored if nil */
  386.     long                            maxToPage;                    /* For gxDefaultPageRange, we parse with this, ignored if nil */
  387.     char                            replaceString[1];            /* For gxReplacePageRange, string to display */
  388. };
  389. typedef struct gxPageRangeInfo gxPageRangeInfo;
  390.  
  391. /* optionChosen field constants for SimplePageRangeInfo */
  392.  
  393. enum {
  394.     gxDefaultPageRange            = (char)0,
  395.     gxReplacePageRange            = (char)1,
  396.     gxCustomizePageRange        = (char)2
  397. };
  398.  
  399. /* gxQualityTag COLLECTION ITEM */
  400. enum {
  401.     gxQualityTag                = 'qual'
  402. };
  403.  
  404. struct gxQualityInfo {
  405.     Boolean                            disableQuality;                /* True to disable standard quality controls */
  406.     char                            padByte;
  407.     short                            defaultQuality;                /* The default quality value */
  408.     short                            currentQuality;                /* The current quality value */
  409.     short                            qualityCount;                /* The number of quality menu items in popup menu */
  410.     char                            qualityNames[1];            /* An array of packed pascal strings for popup menu titles */
  411. };
  412. typedef struct gxQualityInfo gxQualityInfo;
  413.  
  414. /* gxFileDestinationTag COLLECTION ITEM */
  415.  
  416. enum {
  417.     gxFileDestinationTag        = 'dest'
  418. };
  419.  
  420. struct gxFileDestinationInfo {
  421.     Boolean                            toFile;                        /* True if destination is a file */
  422.     char                            padByte;
  423. };
  424. typedef struct gxFileDestinationInfo gxFileDestinationInfo;
  425.  
  426. /* gxFileLocationTag COLLECTION ITEM */
  427.  
  428. enum {
  429.     gxFileLocationTag            = 'floc'
  430. };
  431.  
  432. struct gxFileLocationInfo {
  433.     FSSpec                            fileSpec;                    /* Location to put file, if destination is file */
  434. };
  435. typedef struct gxFileLocationInfo gxFileLocationInfo;
  436.  
  437. /* gxFileFormatTag COLLECTION ITEM */
  438.  
  439. enum {
  440.     gxFileFormatTag                = 'ffmt'
  441. };
  442.  
  443. struct gxFileFormatInfo {
  444.     Str31                            fileFormatName;                /* Name of file format (e.g. "PostScript") if destination is file */
  445. };
  446. typedef struct gxFileFormatInfo gxFileFormatInfo;
  447.  
  448. /* gxFileFontsTag COLLECTION ITEM */
  449.  
  450. enum {
  451.     gxFileFontsTag                = 'incf'
  452. };
  453.  
  454. struct gxFileFontsInfo {
  455.     char                            includeFonts;                /* Which fonts to include, if destination is file */
  456.     char                            padByte;
  457. };
  458. typedef struct gxFileFontsInfo gxFileFontsInfo;
  459.  
  460. /* includeFonts field constants */
  461.  
  462. enum {
  463.     gxIncludeNoFonts            = (char)1,                        /* Include no fonts */
  464.     gxIncludeAllFonts            = (char)2,                        /* Include all fonts */
  465.     gxIncludeNonStandardFonts    = (char)3                        /* Include only fonts that aren't in the standard LW set */
  466. };
  467.  
  468. /* gxPaperFeedTag COLLECTION ITEM */
  469. enum {
  470.     gxPaperFeedTag                = 'feed'
  471. };
  472.  
  473. struct gxPaperFeedInfo {
  474.     Boolean                            autoFeed;                    /* True if automatic feed, false if manual */
  475.     char                            padByte;
  476. };
  477. typedef struct gxPaperFeedInfo gxPaperFeedInfo;
  478.  
  479. /* gxTrayFeedTag COLLECTION ITEM */
  480.  
  481. enum {
  482.     gxTrayFeedTag                = 'tray'
  483. };
  484.  
  485. typedef long gxTrayIndex;
  486.  
  487. struct gxTrayFeedInfo {
  488.     gxTrayIndex                        feedTrayIndex;                /* Tray to feed paper from */
  489.     Boolean                            manualFeedThisPage;            /* Signals manual feeding for the page */
  490.     char                            padByte;
  491. };
  492. typedef struct gxTrayFeedInfo gxTrayFeedInfo;
  493.  
  494. /* gxManualFeedTag COLLECTION ITEM */
  495.  
  496. enum {
  497.     gxManualFeedTag                = 'manf'
  498. };
  499.  
  500. struct gxManualFeedInfo {
  501.     long                            numPaperTypeNames;            /* Number of paperTypes to manually feed */
  502.     Str31                            paperTypeNames[1];            /* Array of names of paperTypes to manually feed */
  503. };
  504. typedef struct gxManualFeedInfo gxManualFeedInfo;
  505.  
  506. /* gxNormalMappingTag COLLECTION ITEM */
  507.  
  508. enum {
  509.     gxNormalMappingTag            = 'nmap'
  510. };
  511.  
  512. struct gxNormalMappingInfo {
  513.     Boolean                            normalPaperMapping;            /* True if not overriding normal paper mapping */
  514.     char                            padByte;
  515. };
  516. typedef struct gxNormalMappingInfo gxNormalMappingInfo;
  517.  
  518. /* gxSpecialMappingTag COLLECTION ITEM */
  519.  
  520. enum {
  521.     gxSpecialMappingTag            = 'smap'
  522. };
  523.  
  524. struct gxSpecialMappingInfo {
  525.     char                            specialMapping;                /* Enumerated redirect, scale or tile setting */
  526.     char                            padByte;
  527. };
  528. typedef struct gxSpecialMappingInfo gxSpecialMappingInfo;
  529.  
  530. /* specialMapping field constants */
  531.  
  532. enum {
  533.     gxRedirectPages                = (char)1,                        /* Redirect pages to a papertype and clip if necessary */
  534.     gxScalePages                = (char)2,                        /* Scale pages if necessary */
  535.     gxTilePages                    = (char)3                        /* Tile pages if necessary */
  536. };
  537.  
  538. /* gxTrayMappingTag COLLECTION ITEM */
  539. enum {
  540.     gxTrayMappingTag            = 'tmap'
  541. };
  542.  
  543. struct gxTrayMappingInfo {
  544.     gxTrayIndex                        mapPaperToTray;                /* Tray to map all paper to */
  545. };
  546. typedef struct gxTrayMappingInfo gxTrayMappingInfo;
  547.  
  548. /* gxPaperMappingTag COLLECTION ITEM */
  549. /* This collection item contains a flattened paper type resource */
  550.  
  551. enum {
  552.     gxPaperMappingTag            = 'pmap'
  553. };
  554.  
  555. /* gxPrintPanelTag COLLECTION ITEM */
  556. enum {
  557.     gxPrintPanelTag                = 'ppan'
  558. };
  559.  
  560. struct gxPrintPanelInfo {
  561.     Str31                            startPanelName;                /* Name of starting panel in Print dialog */
  562. };
  563. typedef struct gxPrintPanelInfo gxPrintPanelInfo;
  564.  
  565. /* gxFormatPanelTag COLLECTION ITEM */
  566.  
  567. enum {
  568.     gxFormatPanelTag            = 'fpan'
  569. };
  570.  
  571. struct gxFormatPanelInfo {
  572.     Str31                            startPanelName;                /* Name of starting panel in Format dialog */
  573. };
  574. typedef struct gxFormatPanelInfo gxFormatPanelInfo;
  575.  
  576. /* gxTranslatedDocumentTag COLLECTION ITEM */
  577.  
  578. enum {
  579.     gxTranslatedDocumentTag        = 'trns'
  580. };
  581.  
  582. struct gxTranslatedDocumentInfo {
  583.     long                            translatorInfo;                /* Information from the translation process */
  584. };
  585. typedef struct gxTranslatedDocumentInfo gxTranslatedDocumentInfo;
  586.  
  587. /*
  588.  
  589.     >>>>>> FORMAT COLLECTION ITEMS <<<<<<
  590.  
  591. */
  592. /* gxPaperTypeLockTag COLLECTION ITEM */
  593.  
  594. enum {
  595.     gxPaperTypeLockTag            = 'ptlk'
  596. };
  597.  
  598. struct gxPaperTypeLockInfo {
  599.     Boolean                            paperTypeLocked;            /* True if format's paperType is locked */
  600.     char                            padByte;
  601. };
  602. typedef struct gxPaperTypeLockInfo gxPaperTypeLockInfo;
  603.  
  604. /* gxOrientationTag COLLECTION ITEM */
  605.  
  606. enum {
  607.     gxOrientationTag            = 'layo'
  608. };
  609.  
  610. struct gxOrientationInfo {
  611.     char                            orientation;                /* An enumerated orientation value */
  612.     char                            padByte;
  613. };
  614. typedef struct gxOrientationInfo gxOrientationInfo;
  615.  
  616. /* orientation field constants */
  617.  
  618. enum {
  619.     gxPortraitLayout            = (char)0,                        /* Portrait */
  620.     gxLandscapeLayout            = (char)1,                        /* Landscape */
  621.     gxRotatedPortraitLayout        = (char)2,                        /* Portrait, rotated 180° */
  622.     gxRotatedLandscapeLayout    = (char)3                        /* Landscape, rotated 180°  */
  623. };
  624.  
  625. /* gxScalingTag COLLECTION ITEM */
  626. enum {
  627.     gxScalingTag                = 'scal'
  628. };
  629.  
  630. struct gxScalingInfo {
  631.     Fixed                            horizontalScaleFactor;        /* Current horizontal scaling factor */
  632.     Fixed                            verticalScaleFactor;        /* Current vertical scaling factor */
  633.     short                            minScaling;                    /* Minimum scaling allowed */
  634.     short                            maxScaling;                    /* Maximum scaling allowed */
  635. };
  636. typedef struct gxScalingInfo gxScalingInfo;
  637.  
  638. /* gxDirectModeTag COLLECTION ITEM */
  639.  
  640. enum {
  641.     gxDirectModeTag                = 'dirm'
  642. };
  643.  
  644. struct gxDirectModeInfo {
  645.     Boolean                            directModeOn;                /* True if a direct mode is enabled */
  646.     char                            padByte;
  647. };
  648. typedef struct gxDirectModeInfo gxDirectModeInfo;
  649.  
  650. /* gxFormatHalftoneTag COLLECTION ITEM */
  651.  
  652. enum {
  653.     gxFormatHalftoneTag            = 'half'
  654. };
  655.  
  656. struct gxFormatHalftoneInfo {
  657.     long                            numHalftones;                /* Number of halftone records */
  658.     gxHalftone                        halftones[1];                /* The halftone records */
  659. };
  660. typedef struct gxFormatHalftoneInfo gxFormatHalftoneInfo;
  661.  
  662. /* gxInvertPageTag COLLECTION ITEM */
  663.  
  664. enum {
  665.     gxInvertPageTag                = 'invp'
  666. };
  667.  
  668. struct gxInvertPageInfo {
  669.     char                            padByte;
  670.     Boolean                            invert;                        /* If true, invert page */
  671. };
  672. typedef struct gxInvertPageInfo gxInvertPageInfo;
  673.  
  674. /* gxFlipPageHorizontalTag COLLECTION ITEM */
  675.  
  676. enum {
  677.     gxFlipPageHorizontalTag        = 'flph'
  678. };
  679.  
  680. struct gxFlipPageHorizontalInfo {
  681.     char                            padByte;
  682.     Boolean                            flipHorizontal;                /* If true, flip x coordinates on page */
  683. };
  684. typedef struct gxFlipPageHorizontalInfo gxFlipPageHorizontalInfo;
  685.  
  686. /* gxFlipPageVerticalTag COLLECTION ITEM */
  687.  
  688. enum {
  689.     gxFlipPageVerticalTag        = 'flpv'
  690. };
  691.  
  692. struct gxFlipPageVerticalInfo {
  693.     char                            padByte;
  694.     Boolean                            flipVertical;                /* If true, flip y coordinates on page */
  695. };
  696. typedef struct gxFlipPageVerticalInfo gxFlipPageVerticalInfo;
  697.  
  698. /* gxPreciseBitmapsTag COLLECTION ITEM */
  699.  
  700. enum {
  701.     gxPreciseBitmapsTag            = 'pbmp'
  702. };
  703.  
  704. struct gxPreciseBitmapInfo {
  705.     Boolean                            preciseBitmaps;                /* If true, scale page by 96% */
  706.     char                            padByte;
  707. };
  708. typedef struct gxPreciseBitmapInfo gxPreciseBitmapInfo;
  709.  
  710. /*
  711.  
  712.     >>>>>> PAPERTYPE COLLECTION ITEMS <<<<<<
  713.  
  714. */
  715. /* gxBaseTag COLLECTION ITEM */
  716.  
  717. enum {
  718.     gxBaseTag                    = 'base'
  719. };
  720.  
  721. struct gxBaseInfo {
  722.     long                            baseType;                    /* PaperType's base type */
  723. };
  724. typedef struct gxBaseInfo gxBaseInfo;
  725.  
  726. /* baseType field constants */
  727.  
  728. enum {
  729.     gxUnknownBase                = 0,                            /* Base paper type from which this paper type is */
  730.     gxUSLetterBase                = 1,                            /* derived.  This is not a complete set. */
  731.     gxUSLegalBase                = 2,
  732.     gxA4LetterBase                = 3,
  733.     gxB5LetterBase                = 4,
  734.     gxTabloidBase                = 5
  735. };
  736.  
  737. /* gxCreatorTag COLLECTION ITEM */
  738. enum {
  739.     gxCreatorTag                = 'crea'
  740. };
  741.  
  742. struct gxCreatorInfo {
  743.     OSType                            creator;                    /* PaperType's creator */
  744. };
  745. typedef struct gxCreatorInfo gxCreatorInfo;
  746.  
  747. /* gxUnitsTag COLLECTION ITEM */
  748.  
  749. enum {
  750.     gxUnitsTag                    = 'unit'
  751. };
  752.  
  753. struct gxUnitsInfo {
  754.     char                            units;                        /* PaperType's units (used by PaperType Editor). */
  755.     char                            padByte;
  756. };
  757. typedef struct gxUnitsInfo gxUnitsInfo;
  758.  
  759. /* units field constants */
  760.  
  761. enum {
  762.     gxPicas                        = (char)0,                        /* Pica measurement */
  763.     gxMMs                        = (char)1,                        /* Millimeter measurement */
  764.     gxInches                    = (char)2                        /* Inches measurement */
  765. };
  766.  
  767. /* gxFlagsTag COLLECTION ITEM */
  768. enum {
  769.     gxFlagsTag                    = 'flag'
  770. };
  771.  
  772. struct gxFlagsInfo {
  773.     long                            flags;                        /* PaperType's flags */
  774. };
  775. typedef struct gxFlagsInfo gxFlagsInfo;
  776.  
  777. /* flags field constants */
  778.  
  779. enum {
  780.     gxOldPaperTypeFlag            = 0x00800000,                    /* Indicates a paper type for compatibility printing */
  781.     gxNewPaperTypeFlag            = 0x00400000,                    /* Indicates a paper type for QuickDraw GX-aware printing */
  782.     gxOldAndNewFlag                = 0x00C00000,                    /* Indicates a paper type that's both old and new */
  783.     gxDefaultPaperTypeFlag        = 0x00100000                    /* Indicates the default paper type in the group */
  784. };
  785.  
  786. /* gxCommentTag COLLECTION ITEM */
  787. enum {
  788.     gxCommentTag                = 'cmnt'
  789. };
  790.  
  791. struct gxCommentInfo {
  792.     Str255                            comment;                    /* PaperType's comment */
  793. };
  794. typedef struct gxCommentInfo gxCommentInfo;
  795.  
  796. /*
  797.  
  798.     >>>>>> PRINTER VIEWDEVICE TAGS <<<<<<
  799.  
  800. */
  801. /* gxPenTableTag COLLECTION ITEM */
  802.  
  803. enum {
  804.     gxPenTableTag                = 'pent'
  805. };
  806.  
  807. struct gxPenTableEntry {
  808.     Str31                            penName;                    /* Name of the pen */
  809.     gxColor                            penColor;                    /* Color to use from the color set */
  810.     Fixed                            penThickness;                /* Size of the pen */
  811.     short                            penUnits;                    /* Specifies units in which pen thickness is defined */
  812.     short                            penPosition;                /* Pen position in the carousel, -1 (kPenNotLoaded) if not loaded */
  813. };
  814. typedef struct gxPenTableEntry gxPenTableEntry;
  815.  
  816. struct gxPenTable {
  817.     long                            numPens;                    /* Number of pen entries in the following array */
  818.     gxPenTableEntry                    pens[1];                    /* Array of pen entries */
  819. };
  820. typedef struct gxPenTable gxPenTable, *gxPenTablePtr, **gxPenTableHdl;
  821.  
  822. /* penUnits field constants */
  823.  
  824. enum {
  825.     gxDeviceUnits                = 0,
  826.     gxMMUnits                    = 1,
  827.     gxInchesUnits                = 2
  828. };
  829.  
  830. /* penPosition field constants */
  831. enum {
  832.     gxPenNotLoaded                = -1
  833. };
  834.  
  835. /*
  836.  
  837.     >>>>>> DIALOG-RELATED CONSTANTS AND TYPES <<<<<<
  838.  
  839. */
  840. typedef long gxDialogResult;
  841.  
  842.  
  843. enum {
  844.     gxCancelSelected            = (gxDialogResult)0,
  845.     gxOKSelected                = (gxDialogResult)1,
  846.     gxRevertSelected            = (gxDialogResult)2
  847. };
  848.  
  849. struct gxEditMenuRecord {
  850.     short                            editMenuID;
  851.     short                            cutItem;
  852.     short                            copyItem;
  853.     short                            pasteItem;
  854.     short                            clearItem;
  855.     short                            undoItem;
  856. };
  857. typedef struct gxEditMenuRecord gxEditMenuRecord;
  858.  
  859. /*
  860.  
  861.     >>>>>> JOB FORMAT MODE CONSTANTS AND TYPES <<<<<<
  862.  
  863. */
  864. typedef OSType gxJobFormatMode;
  865.  
  866. struct gxJobFormatModeTable {
  867.     long                            numModes;                    /* Number of job format modes to choose from */
  868.     gxJobFormatMode                    modes[1];                    /* The job format modes */
  869. };
  870. typedef struct gxJobFormatModeTable gxJobFormatModeTable, *gxJobFormatModeTablePtr, **gxJobFormatModeTableHdl;
  871.  
  872.  
  873. enum {
  874.     gxGraphicsJobFormatMode        = (gxJobFormatMode)'grph',
  875.     gxTextJobFormatMode            = (gxJobFormatMode)'text',
  876.     gxPostScriptJobFormatMode    = (gxJobFormatMode)'post'
  877. };
  878.  
  879. typedef long gxQueryType;
  880.  
  881.  
  882. enum {
  883.     gxGetJobFormatLineConstraintQuery = (gxQueryType)0,
  884.     gxGetJobFormatFontsQuery    = (gxQueryType)1,
  885.     gxGetJobFormatFontCommonStylesQuery = (gxQueryType)2,
  886.     gxGetJobFormatFontConstraintQuery = (gxQueryType)3,
  887.     gxSetStyleJobFormatCommonStyleQuery = (gxQueryType)4
  888. };
  889.  
  890. /* Structures used for Text mode field constants */
  891. struct gxPositionConstraintTable {
  892.     gxPoint                            phase;                        /* Position phase */
  893.     gxPoint                            offset;                        /* Position offset */
  894.     long                            numSizes;                    /* Number of available font sizes */
  895.     Fixed                            sizes[1];                    /* The available font sizes */
  896. };
  897. typedef struct gxPositionConstraintTable gxPositionConstraintTable, *gxPositionConstraintTablePtr, **gxPositionConstraintTableHdl;
  898.  
  899. /* numSizes field constants */
  900.  
  901. enum {
  902.     gxConstraintRange            = -1
  903. };
  904.  
  905. struct gxStyleNameTable {
  906.     long                            numStyleNames;                /* Number of style names */
  907.     Str255                            styleNames[1];                /* The style names */
  908. };
  909. typedef struct gxStyleNameTable gxStyleNameTable, *gxStyleNameTablePtr, **gxStyleNameTableHdl;
  910.  
  911. struct gxFontTable {
  912.     long                            numFonts;                    /* Number of font references */
  913.     gxFont                            fonts[1];                    /* The font references */
  914. };
  915. typedef struct gxFontTable gxFontTable, *gxFontTablePtr, **gxFontTableHdl;
  916.  
  917. /* ------------------------------------------------------------------------------
  918.  
  919.                                 Printing Manager API Functions
  920.  
  921. -------------------------------------------------------------------------------- */
  922. extern pascal OSErr GXInitPrinting(void)
  923.  FOURWORDINLINE(0x203C, 0x0000, 0, 0xABFE);
  924. extern pascal OSErr GXExitPrinting(void)
  925.  FOURWORDINLINE(0x203C, 0x0000, 1, 0xABFE);
  926. /*
  927.     Error-Handling Routines
  928. */
  929. extern pascal OSErr GXGetJobError(gxJob aJob)
  930.  FOURWORDINLINE(0x203C, 0x0000, 14, 0xABFE);
  931. extern pascal void GXSetJobError(gxJob aJob, OSErr anErr)
  932.  FOURWORDINLINE(0x203C, 0x0000, 15, 0xABFE);
  933. /*
  934.     Job Routines
  935. */
  936. extern pascal OSErr GXNewJob(gxJob *aJob)
  937.  FOURWORDINLINE(0x203C, 0x0000, 2, 0xABFE);
  938. extern pascal OSErr GXDisposeJob(gxJob aJob)
  939.  FOURWORDINLINE(0x203C, 0x0000, 3, 0xABFE);
  940. extern pascal void GXFlattenJob(gxJob aJob, gxPrintingFlattenProc flattenProc, void *aVoid)
  941.  FOURWORDINLINE(0x203C, 0x0000, 4, 0xABFE);
  942. extern pascal gxJob GXUnflattenJob(gxJob aJob, gxPrintingFlattenProc flattenProc, void *aVoid)
  943.  FOURWORDINLINE(0x203C, 0x0000, 5, 0xABFE);
  944. extern pascal Handle GXFlattenJobToHdl(gxJob aJob, Handle aHdl)
  945.  FOURWORDINLINE(0x203C, 0x0000, 6, 0xABFE);
  946. extern pascal gxJob GXUnflattenJobFromHdl(gxJob aJob, Handle aHdl)
  947.  FOURWORDINLINE(0x203C, 0x0000, 7, 0xABFE);
  948. extern pascal void GXInstallApplicationOverride(gxJob aJob, short messageID, void *override)
  949.  FOURWORDINLINE(0x203C, 0x0000, 8, 0xABFE);
  950. extern pascal Collection GXGetJobCollection(gxJob aJob)
  951.  FOURWORDINLINE(0x203C, 0x0000, 29, 0xABFE);
  952. extern pascal void *GXGetJobRefCon(gxJob aJob)
  953.  FOURWORDINLINE(0x203C, 0x0000, 30, 0xABFE);
  954. extern pascal void GXSetJobRefCon(gxJob aJob, void *refCon)
  955.  FOURWORDINLINE(0x203C, 0x0000, 31, 0xABFE);
  956. extern pascal gxJob GXCopyJob(gxJob srcJob, gxJob dstJob)
  957.  FOURWORDINLINE(0x203C, 0x0000, 32, 0xABFE);
  958. extern pascal void GXSelectJobFormattingPrinter(gxJob aJob, Str31 printerName)
  959.  FOURWORDINLINE(0x203C, 0x0000, 33, 0xABFE);
  960. extern pascal void GXSelectJobOutputPrinter(gxJob aJob, Str31 printerName)
  961.  FOURWORDINLINE(0x203C, 0x0000, 34, 0xABFE);
  962. extern pascal void GXForEachJobFormatDo(gxJob aJob, gxFormatProc formatProc, void *refCon)
  963.  FOURWORDINLINE(0x203C, 0x0000, 35, 0xABFE);
  964. extern pascal long GXCountJobFormats(gxJob aJob)
  965.  FOURWORDINLINE(0x203C, 0x0000, 36, 0xABFE);
  966. extern pascal Boolean GXUpdateJob(gxJob aJob)
  967.  FOURWORDINLINE(0x203C, 0x0000, 37, 0xABFE);
  968. extern pascal void GXConvertPrintRecord(gxJob aJob, THPrint hPrint)
  969.  FOURWORDINLINE(0x203C, 0x0000, 38, 0xABFE);
  970. extern pascal void GXIdleJob(gxJob aJob)
  971.  FOURWORDINLINE(0x203C, 0x0000, 87, 0xABFE);
  972. /*
  973.     Job Format Modes Routines
  974. */
  975. extern pascal void GXSetAvailableJobFormatModes(gxJob aJob, gxJobFormatModeTableHdl formatModeTable)
  976.  FOURWORDINLINE(0x203C, 0x0000, 59, 0xABFE);
  977. extern pascal gxJobFormatMode GXGetPreferredJobFormatMode(gxJob aJob, Boolean *directOnly)
  978.  FOURWORDINLINE(0x203C, 0x0000, 60, 0xABFE);
  979. extern pascal gxJobFormatMode GXGetJobFormatMode(gxJob aJob)
  980.  FOURWORDINLINE(0x203C, 0x0000, 61, 0xABFE);
  981. extern pascal void GXSetJobFormatMode(gxJob aJob, gxJobFormatMode formatMode)
  982.  FOURWORDINLINE(0x203C, 0x0000, 62, 0xABFE);
  983. extern pascal void GXJobFormatModeQuery(gxJob aJob, gxQueryType aQueryType, void *srcData, void *dstData)
  984.  FOURWORDINLINE(0x203C, 0x0000, 63, 0xABFE);
  985. /*
  986.     Format Routines
  987. */
  988. extern pascal gxFormat GXNewFormat(gxJob aJob)
  989.  FOURWORDINLINE(0x203C, 0x0000, 9, 0xABFE);
  990. extern pascal void GXDisposeFormat(gxFormat aFormat)
  991.  FOURWORDINLINE(0x203C, 0x0000, 10, 0xABFE);
  992. extern pascal gxFormat GXGetJobFormat(gxJob aJob, long whichFormat)
  993.  FOURWORDINLINE(0x203C, 0x0000, 19, 0xABFE);
  994. extern pascal gxJob GXGetFormatJob(gxFormat aFormat)
  995.  FOURWORDINLINE(0x203C, 0x0000, 20, 0xABFE);
  996. extern pascal gxPaperType GXGetFormatPaperType(gxFormat aFormat)
  997.  FOURWORDINLINE(0x203C, 0x0000, 21, 0xABFE);
  998. extern pascal void GXGetFormatDimensions(gxFormat aFormat, gxRectangle *pageSize, gxRectangle *paperSize)
  999.  FOURWORDINLINE(0x203C, 0x0000, 22, 0xABFE);
  1000. extern pascal Collection GXGetFormatCollection(gxFormat aFormat)
  1001.  FOURWORDINLINE(0x203C, 0x0000, 51, 0xABFE);
  1002. extern pascal void GXChangedFormat(gxFormat aFormat)
  1003.  FOURWORDINLINE(0x203C, 0x0000, 52, 0xABFE);
  1004. extern pascal gxFormat GXCopyFormat(gxFormat srcFormat, gxFormat dstFormat)
  1005.  FOURWORDINLINE(0x203C, 0x0000, 53, 0xABFE);
  1006. extern pascal gxFormat GXCloneFormat(gxFormat aFormat)
  1007.  FOURWORDINLINE(0x203C, 0x0000, 54, 0xABFE);
  1008. extern pascal long GXCountFormatOwners(gxFormat aFormat)
  1009.  FOURWORDINLINE(0x203C, 0x0000, 55, 0xABFE);
  1010. extern pascal void GXGetFormatMapping(gxFormat aFormat, gxMapping *fmtMapping)
  1011.  FOURWORDINLINE(0x203C, 0x0000, 56, 0xABFE);
  1012. extern pascal gxShape GXGetFormatForm(gxFormat aFormat, gxShape *mask)
  1013.  FOURWORDINLINE(0x203C, 0x0000, 57, 0xABFE);
  1014. extern pascal void GXSetFormatForm(gxFormat aFormat, gxShape form, gxShape mask)
  1015.  FOURWORDINLINE(0x203C, 0x0000, 58, 0xABFE);
  1016. /*
  1017.     PaperType Routines
  1018. */
  1019. extern pascal gxPaperType GXNewPaperType(gxJob aJob, Str31 name, gxRectangle *pageSize, gxRectangle *paperSize)
  1020.  FOURWORDINLINE(0x203C, 0x0000, 11, 0xABFE);
  1021. extern pascal void GXDisposePaperType(gxPaperType aPaperType)
  1022.  FOURWORDINLINE(0x203C, 0x0000, 12, 0xABFE);
  1023. extern pascal gxPaperType GXGetNewPaperType(gxJob aJob, short resID)
  1024.  FOURWORDINLINE(0x203C, 0x0000, 13, 0xABFE);
  1025. extern pascal long GXCountJobPaperTypes(gxJob aJob, Boolean forFormatDevice)
  1026.  FOURWORDINLINE(0x203C, 0x0000, 66, 0xABFE);
  1027. extern pascal gxPaperType GXGetJobPaperType(gxJob aJob, long whichPaperType, Boolean forFormatDevice, gxPaperType aPaperType)
  1028.  FOURWORDINLINE(0x203C, 0x0000, 67, 0xABFE);
  1029. extern pascal void GXForEachJobPaperTypeDo(gxJob aJob, gxPaperTypeProc aProc, void *refCon, Boolean forFormattingPrinter)
  1030.  FOURWORDINLINE(0x203C, 0x0000, 68, 0xABFE);
  1031. extern pascal gxPaperType GXCopyPaperType(gxPaperType srcPaperType, gxPaperType dstPaperType)
  1032.  FOURWORDINLINE(0x203C, 0x0000, 69, 0xABFE);
  1033. extern pascal void GXGetPaperTypeName(gxPaperType aPaperType, Str31 papertypeName)
  1034.  FOURWORDINLINE(0x203C, 0x0000, 70, 0xABFE);
  1035. extern pascal void GXGetPaperTypeDimensions(gxPaperType aPaperType, gxRectangle *pageSize, gxRectangle *paperSize)
  1036.  FOURWORDINLINE(0x203C, 0x0000, 71, 0xABFE);
  1037. extern pascal gxJob GXGetPaperTypeJob(gxPaperType aPaperType)
  1038.  FOURWORDINLINE(0x203C, 0x0000, 72, 0xABFE);
  1039. extern pascal Collection GXGetPaperTypeCollection(gxPaperType aPaperType)
  1040.  FOURWORDINLINE(0x203C, 0x0000, 73, 0xABFE);
  1041. /*
  1042.     Printer Routines
  1043. */
  1044. extern pascal gxPrinter GXGetJobFormattingPrinter(gxJob aJob)
  1045.  FOURWORDINLINE(0x203C, 0x0000, 39, 0xABFE);
  1046. extern pascal gxPrinter GXGetJobOutputPrinter(gxJob aJob)
  1047.  FOURWORDINLINE(0x203C, 0x0000, 40, 0xABFE);
  1048. extern pascal gxPrinter GXGetJobPrinter(gxJob aJob)
  1049.  FOURWORDINLINE(0x203C, 0x0000, 41, 0xABFE);
  1050. extern pascal gxJob GXGetPrinterJob(gxPrinter aPrinter)
  1051.  FOURWORDINLINE(0x203C, 0x0000, 42, 0xABFE);
  1052. extern pascal void GXForEachPrinterViewDeviceDo(gxPrinter aPrinter, gxViewDeviceProc aProc, void *refCon)
  1053.  FOURWORDINLINE(0x203C, 0x0000, 43, 0xABFE);
  1054. extern pascal long GXCountPrinterViewDevices(gxPrinter aPrinter)
  1055.  FOURWORDINLINE(0x203C, 0x0000, 44, 0xABFE);
  1056. extern pascal gxViewDevice GXGetPrinterViewDevice(gxPrinter aPrinter, long whichViewDevice)
  1057.  FOURWORDINLINE(0x203C, 0x0000, 45, 0xABFE);
  1058. extern pascal void GXSelectPrinterViewDevice(gxPrinter aPrinter, long whichViewDevice)
  1059.  FOURWORDINLINE(0x203C, 0x0000, 46, 0xABFE);
  1060. extern pascal void GXGetPrinterName(gxPrinter aPrinter, Str31 printerName)
  1061.  FOURWORDINLINE(0x203C, 0x0000, 47, 0xABFE);
  1062. extern pascal OSType GXGetPrinterType(gxPrinter aPrinter)
  1063.  FOURWORDINLINE(0x203C, 0x0000, 48, 0xABFE);
  1064. extern pascal void GXGetPrinterDriverName(gxPrinter aPrinter, Str31 driverName)
  1065.  FOURWORDINLINE(0x203C, 0x0000, 49, 0xABFE);
  1066. extern pascal OSType GXGetPrinterDriverType(gxPrinter aPrinter)
  1067.  FOURWORDINLINE(0x203C, 0x0000, 50, 0xABFE);
  1068. /*
  1069.     Dialog Routines
  1070. */
  1071. extern pascal gxDialogResult GXJobDefaultFormatDialog(gxJob aJob, gxEditMenuRecord *anEditMenuRec)
  1072.  FOURWORDINLINE(0x203C, 0x0000, 16, 0xABFE);
  1073. extern pascal gxDialogResult GXJobPrintDialog(gxJob aJob, gxEditMenuRecord *anEditMenuRec)
  1074.  FOURWORDINLINE(0x203C, 0x0000, 17, 0xABFE);
  1075. extern pascal gxDialogResult GXFormatDialog(gxFormat aFormat, gxEditMenuRecord *anEditMenuRec, StringPtr title)
  1076.  FOURWORDINLINE(0x203C, 0x0000, 18, 0xABFE);
  1077. extern pascal void GXEnableJobScalingPanel(gxJob aJob, Boolean enabled)
  1078.  FOURWORDINLINE(0x203C, 0x0000, 64, 0xABFE);
  1079. extern pascal void GXGetJobPanelDimensions(gxJob aJob, Rect *panelArea)
  1080.  FOURWORDINLINE(0x203C, 0x0000, 65, 0xABFE);
  1081. /*
  1082.     Spooling Routines
  1083. */
  1084. extern pascal void GXGetJobPageRange(gxJob theJob, long *firstPage, long *lastPage)
  1085.  FOURWORDINLINE(0x203C, 0x0000, 23, 0xABFE);
  1086. extern pascal void GXStartJob(gxJob theJob, StringPtr docName, long pageCount)
  1087.  FOURWORDINLINE(0x203C, 0x0000, 24, 0xABFE);
  1088. extern pascal void GXPrintPage(gxJob theJob, long pageNumber, gxFormat theFormat, gxShape thePage)
  1089.  FOURWORDINLINE(0x203C, 0x0000, 25, 0xABFE);
  1090. extern pascal Boolean GXStartPage(gxJob theJob, long pageNumber, gxFormat theFormat, long numViewPorts, gxViewPort *viewPortList)
  1091.  FOURWORDINLINE(0x203C, 0x0000, 26, 0xABFE);
  1092. extern pascal void GXFinishPage(gxJob theJob)
  1093.  FOURWORDINLINE(0x203C, 0x0000, 27, 0xABFE);
  1094. extern pascal void GXFinishJob(gxJob theJob)
  1095.  FOURWORDINLINE(0x203C, 0x0000, 28, 0xABFE);
  1096. /*
  1097.     PrintFile Routines
  1098. */
  1099. extern pascal gxPrintFile GXOpenPrintFile(gxJob theJob, FSSpecPtr anFSSpec, char permission)
  1100.  FOURWORDINLINE(0x203C, 0x0000, 74, 0xABFE);
  1101. extern pascal void GXClosePrintFile(gxPrintFile aPrintFile)
  1102.  FOURWORDINLINE(0x203C, 0x0000, 75, 0xABFE);
  1103. extern pascal gxJob GXGetPrintFileJob(gxPrintFile aPrintFile)
  1104.  FOURWORDINLINE(0x203C, 0x0000, 76, 0xABFE);
  1105. extern pascal long GXCountPrintFilePages(gxPrintFile aPrintFile)
  1106.  FOURWORDINLINE(0x203C, 0x0000, 77, 0xABFE);
  1107. extern pascal void GXReadPrintFilePage(gxPrintFile aPrintFile, long pageNumber, long numViewPorts, gxViewPort *viewPortList, gxFormat *pgFormat, gxShape *pgShape)
  1108.  FOURWORDINLINE(0x203C, 0x0000, 78, 0xABFE);
  1109. extern pascal void GXReplacePrintFilePage(gxPrintFile aPrintFile, long pageNumber, gxFormat aFormat, gxShape aShape)
  1110.  FOURWORDINLINE(0x203C, 0x0000, 79, 0xABFE);
  1111. extern pascal void GXInsertPrintFilePage(gxPrintFile aPrintFile, long atPageNumber, gxFormat pgFormat, gxShape pgShape)
  1112.  FOURWORDINLINE(0x203C, 0x0000, 80, 0xABFE);
  1113. extern pascal void GXDeletePrintFilePageRange(gxPrintFile aPrintFile, long fromPageNumber, long toPageNumber)
  1114.  FOURWORDINLINE(0x203C, 0x0000, 81, 0xABFE);
  1115. extern pascal void GXSavePrintFile(gxPrintFile aPrintFile, FSSpec *anFSSpec)
  1116.  FOURWORDINLINE(0x203C, 0x0000, 82, 0xABFE);
  1117. /*
  1118.     ColorSync Routines
  1119. */
  1120. extern pascal long GXFindPrinterProfile(gxPrinter aPrinter, void *searchData, long index, gxColorProfile *returnedProfile)
  1121.  FOURWORDINLINE(0x203C, 0x0000, 83, 0xABFE);
  1122. extern pascal long GXFindFormatProfile(gxFormat aFormat, void *searchData, long index, gxColorProfile *returnedProfile)
  1123.  FOURWORDINLINE(0x203C, 0x0000, 84, 0xABFE);
  1124. extern pascal void GXSetPrinterProfile(gxPrinter aPrinter, gxColorProfile oldProfile, gxColorProfile newProfile)
  1125.  FOURWORDINLINE(0x203C, 0x0000, 85, 0xABFE);
  1126. extern pascal void GXSetFormatProfile(gxFormat aFormat, gxColorProfile oldProfile, gxColorProfile newProfile)
  1127.  FOURWORDINLINE(0x203C, 0x0000, 86, 0xABFE);
  1128. /************************************************************************
  1129.                         Start of old "GXPrintingResEquates.h/a/p" interface file.
  1130.                 *************************************************************************/
  1131. /*    ------------------------------------
  1132.                 Basic client types
  1133.     ------------------------------------ */
  1134.  
  1135. enum {
  1136.     gxPrintingManagerType        = 'pmgr',
  1137.     gxImagingSystemType            = 'gxis',
  1138.     gxPrinterDriverType            = 'pdvr',
  1139.     gxPrintingExtensionType        = 'pext',
  1140.     gxUnknownPrinterType        = 'none',
  1141.     gxAnyPrinterType            = 'univ',
  1142.     gxQuickdrawPrinterType        = 'qdrw',
  1143.     gxPortableDocPrinterType    = 'gxpd',
  1144.     gxRasterPrinterType            = 'rast',
  1145.     gxPostscriptPrinterType        = 'post',
  1146.     gxVectorPrinterType            = 'vect'
  1147. };
  1148.  
  1149. /* All pre-defined printing collection items have this ID */
  1150. enum {
  1151.     gxPrintingTagID                = -28672
  1152. };
  1153.  
  1154. /*    ----------------------------------------------------------------------
  1155.  
  1156.         Resource types and IDs used by both extension and driver writers
  1157.  
  1158.     ---------------------------------------------------------------------- */
  1159. /* Resources in a printer driver or extension must be based off of these IDs */
  1160. enum {
  1161.     gxPrintingDriverBaseID        = -27648,
  1162.     gxPrintingExtensionBaseID    = -27136
  1163. };
  1164.  
  1165. /*    Override resources tell the system what messages a driver or extension
  1166.         is overriding.  A driver may have a series of these resources. */
  1167. enum {
  1168.     gxOverrideType                = 'over'
  1169. };
  1170.  
  1171. /*    --------------------------------------------------------------
  1172.  
  1173.         Message ID definitions by both extension and driver writers
  1174.  
  1175.     --------------------------------------------------------------- */
  1176. /* Identifiers for universal message overrides. */
  1177. enum {
  1178.     gxInitializeMsg                = 0,
  1179.     gxShutDownMsg                = 1,
  1180.     gxJobIdleMsg                = 2,
  1181.     gxJobStatusMsg                = 3,
  1182.     gxPrintingEventMsg            = 4,
  1183.     gxJobDefaultFormatDialogMsg    = 5,
  1184.     gxFormatDialogMsg            = 6,
  1185.     gxJobPrintDialogMsg            = 7,
  1186.     gxFilterPanelEventMsg        = 8,
  1187.     gxHandlePanelEventMsg        = 9,
  1188.     gxParsePageRangeMsg            = 10,
  1189.     gxDefaultJobMsg                = 11,
  1190.     gxDefaultFormatMsg            = 12,
  1191.     gxDefaultPaperTypeMsg        = 13,
  1192.     gxDefaultPrinterMsg            = 14,
  1193.     gxCreateSpoolFileMsg        = 15,
  1194.     gxSpoolPageMsg                = 16,
  1195.     gxSpoolDataMsg                = 17,
  1196.     gxSpoolResourceMsg            = 18,
  1197.     gxCompleteSpoolFileMsg        = 19,
  1198.     gxCountPagesMsg                = 20,
  1199.     gxDespoolPageMsg            = 21,
  1200.     gxDespoolDataMsg            = 22,
  1201.     gxDespoolResourceMsg        = 23,
  1202.     gxCloseSpoolFileMsg            = 24,
  1203.     gxStartJobMsg                = 25,
  1204.     gxFinishJobMsg                = 26,
  1205.     gxStartPageMsg                = 27,
  1206.     gxFinishPageMsg                = 28,
  1207.     gxPrintPageMsg                = 29,
  1208.     gxSetupImageDataMsg            = 30,
  1209.     gxImageJobMsg                = 31,
  1210.     gxImageDocumentMsg            = 32,
  1211.     gxImagePageMsg                = 33,
  1212.     gxRenderPageMsg                = 34,
  1213.     gxCreateImageFileMsg        = 35,
  1214.     gxOpenConnectionMsg            = 36,
  1215.     gxCloseConnectionMsg        = 37,
  1216.     gxStartSendPageMsg            = 38,
  1217.     gxFinishSendPageMsg            = 39,
  1218.     gxWriteDataMsg                = 40,
  1219.     gxBufferDataMsg                = 41,
  1220.     gxDumpBufferMsg                = 42,
  1221.     gxFreeBufferMsg                = 43,
  1222.     gxCheckStatusMsg            = 44,
  1223.     gxGetDeviceStatusMsg        = 45,
  1224.     gxFetchTaggedDataMsg        = 46,
  1225.     gxGetDTPMenuListMsg            = 47,
  1226.     gxDTPMenuSelectMsg            = 48,
  1227.     gxHandleAlertFilterMsg        = 49,
  1228.     gxJobFormatModeQueryMsg        = 50,
  1229.     gxWriteStatusToDTPWindowMsg    = 51,
  1230.     gxInitializeStatusAlertMsg    = 52,
  1231.     gxHandleAlertStatusMsg        = 53,
  1232.     gxHandleAlertEventMsg        = 54,
  1233.     gxCleanupStartJobMsg        = 55,
  1234.     gxCleanupStartPageMsg        = 56,
  1235.     gxCleanupOpenConnectionMsg    = 57,
  1236.     gxCleanupStartSendPageMsg    = 58,
  1237.     gxDefaultDesktopPrinterMsg    = 59,
  1238.     gxCaptureOutputDeviceMsg    = 60,
  1239.     gxOpenConnectionRetryMsg    = 61,
  1240.     gxExamineSpoolFileMsg        = 62,
  1241.     gxFinishSendPlaneMsg        = 63,
  1242.     gxDoesPaperFitMsg            = 64,
  1243.     gxChooserMessageMsg            = 65,
  1244.     gxFindPrinterProfileMsg        = 66,
  1245.     gxFindFormatProfileMsg        = 67,
  1246.     gxSetPrinterProfileMsg        = 68,
  1247.     gxSetFormatProfileMsg        = 69,
  1248.     gxHandleAltDestinationMsg    = 70,
  1249.     gxSetupPageImageDataMsg        = 71
  1250. };
  1251.  
  1252. /* Identifiers for Quickdraw message overrides. */
  1253. enum {
  1254.     gxPrOpenDocMsg                = 0,
  1255.     gxPrCloseDocMsg                = 1,
  1256.     gxPrOpenPageMsg                = 2,
  1257.     gxPrClosePageMsg            = 3,
  1258.     gxPrintDefaultMsg            = 4,
  1259.     gxPrStlDialogMsg            = 5,
  1260.     gxPrJobDialogMsg            = 6,
  1261.     gxPrStlInitMsg                = 7,
  1262.     gxPrJobInitMsg                = 8,
  1263.     gxPrDlgMainMsg                = 9,
  1264.     gxPrValidateMsg                = 10,
  1265.     gxPrJobMergeMsg                = 11,
  1266.     gxPrGeneralMsg                = 12,
  1267.     gxConvertPrintRecordToMsg    = 13,
  1268.     gxConvertPrintRecordFromMsg    = 14,
  1269.     gxPrintRecordToJobMsg        = 15
  1270. };
  1271.  
  1272. /* Identifiers for raster imaging message overrides. */
  1273. enum {
  1274.     gxRasterDataInMsg            = 0,
  1275.     gxRasterLineFeedMsg            = 1,
  1276.     gxRasterPackageBitmapMsg    = 2
  1277. };
  1278.  
  1279. /* Identifiers for PostScript imaging message overrides. */
  1280. enum {
  1281.     gxPostscriptQueryPrinterMsg    = 0,
  1282.     gxPostscriptInitializePrinterMsg = 1,
  1283.     gxPostscriptResetPrinterMsg    = 2,
  1284.     gxPostscriptExitServerMsg    = 3,
  1285.     gxPostscriptGetStatusTextMsg = 4,
  1286.     gxPostscriptGetPrinterTextMsg = 5,
  1287.     gxPostscriptScanStatusTextMsg = 6,
  1288.     gxPostscriptScanPrinterTextMsg = 7,
  1289.     gxPostscriptGetDocumentProcSetListMsg = 8,
  1290.     gxPostscriptDownloadProcSetListMsg = 9,
  1291.     gxPostscriptGetPrinterGlyphsInformationMsg = 10,
  1292.     gxPostscriptStreamFontMsg    = 11,
  1293.     gxPostscriptDoDocumentHeaderMsg = 12,
  1294.     gxPostscriptDoDocumentSetUpMsg = 13,
  1295.     gxPostscriptDoDocumentTrailerMsg = 14,
  1296.     gxPostscriptDoPageSetUpMsg    = 15,
  1297.     gxPostscriptSelectPaperTypeMsg = 16,
  1298.     gxPostscriptDoPageTrailerMsg = 17,
  1299.     gxPostscriptEjectPageMsg    = 18,
  1300.     gxPostscriptProcessShapeMsg    = 19,
  1301.     gxPostScriptEjectPendingPageMsg = 20
  1302. };
  1303.  
  1304. /* Identifiers for Vector imaging message overrides. */
  1305. enum {
  1306.     gxVectorPackageDataMsg        = 0,
  1307.     gxVectorLoadPensMsg            = 1,
  1308.     gxVectorVectorizeShapeMsg    = 2
  1309. };
  1310.  
  1311. /* Dialog related resource types */
  1312. enum {
  1313.     gxPrintingAlertType            = 'plrt',
  1314.     gxStatusType                = 'stat',
  1315.     gxExtendedDITLType            = 'xdtl',
  1316.     gxPrintPanelType            = 'ppnl',
  1317.     gxCollectionType            = 'cltn'
  1318. };
  1319.  
  1320. /* Communication resource types */
  1321. /*
  1322.     The looker resource is used by the Chooser PACK to determine what kind
  1323.     of communications this driver supports. (In order to generate/handle the 
  1324.     pop-up menu for "Connect via:".
  1325.     
  1326.     The looker resource is also used by PrinterShare to determine the AppleTalk NBP Type
  1327.     for servers created for this driver.
  1328. */
  1329. enum {
  1330.     gxLookerType                = 'look',
  1331.     gxLookerID                    = -4096
  1332. };
  1333.  
  1334. /* The communications method and private data used to connect to the printer */
  1335. enum {
  1336.     gxDeviceCommunicationsType    = 'comm'
  1337. };
  1338.  
  1339. /*    -------------------------------------------------
  1340.  
  1341.     Resource types and IDs used by extension writers
  1342.  
  1343.     ------------------------------------------------- */
  1344. enum {
  1345.     gxExtensionUniversalOverrideID = gxPrintingExtensionBaseID
  1346. };
  1347.  
  1348. enum {
  1349.     gxExtensionImagingOverrideSelectorID = gxPrintingExtensionBaseID
  1350. };
  1351.  
  1352. enum {
  1353.     gxExtensionScopeType        = 'scop',
  1354.     gxDriverScopeID                = gxPrintingExtensionBaseID,
  1355.     gxPrinterScopeID            = gxPrintingExtensionBaseID + 1,
  1356.     gxPrinterExceptionScopeID    = gxPrintingExtensionBaseID + 2
  1357. };
  1358.  
  1359. enum {
  1360.     gxExtensionLoadType            = 'load',
  1361.     gxExtensionLoadID            = gxPrintingExtensionBaseID
  1362. };
  1363.  
  1364. enum {
  1365.     gxExtensionLoadFirst        = 0x00000100,
  1366.     gxExtensionLoadAnywhere        = 0x7FFFFFFF,
  1367.     gxExtensionLoadLast            = 0xFFFFFF00
  1368. };
  1369.  
  1370. enum {
  1371.     gxExtensionOptimizationType    = 'eopt',
  1372.     gxExtensionOptimizationID    = gxPrintingExtensionBaseID
  1373. };
  1374.  
  1375. /*    -----------------------------------------------
  1376.  
  1377.     Resource types and IDs used by driver writers
  1378.  
  1379.     ----------------------------------------------- */
  1380. enum {
  1381.     gxDriverUniversalOverrideID    = gxPrintingDriverBaseID,
  1382.     gxDriverImagingOverrideID    = gxPrintingDriverBaseID + 1,
  1383.     gxDriverCompatibilityOverrideID = gxPrintingDriverBaseID + 2
  1384. };
  1385.  
  1386. enum {
  1387.     gxDriverFileFormatType        = 'pfil',
  1388.     gxDriverFileFormatID        = gxPrintingDriverBaseID
  1389. };
  1390.  
  1391. enum {
  1392.     gxDestinationAdditionType    = 'dsta',
  1393.     gxDestinationAdditionID        = gxPrintingDriverBaseID
  1394. };
  1395.  
  1396. /* IMAGING RESOURCES */
  1397. /*    The imaging system resource specifies which imaging system a printer
  1398.         driver wishes to use. */
  1399. enum {
  1400.     gxImagingSystemSelectorType    = 'isys',
  1401.     gxImagingSystemSelectorID    = gxPrintingDriverBaseID
  1402. };
  1403.  
  1404. /* 'exft' resource ID -- exclude font list */
  1405. enum {
  1406.     kExcludeFontListType        = 'exft',
  1407.     kExcludeFontListID            = gxPrintingDriverBaseID
  1408. };
  1409.  
  1410. /* Resource for type for color matching */
  1411. enum {
  1412.     gxColorMatchingDataType        = 'prof',
  1413.     gxColorMatchingDataID        = gxPrintingDriverBaseID
  1414. };
  1415.  
  1416. /* Resource type and id for the tray count */
  1417. enum {
  1418.     gxTrayCountDataType            = 'tray',
  1419.     gxTrayCountDataID            = gxPrintingDriverBaseID
  1420. };
  1421.  
  1422. /* Resource type for the tray names */
  1423. enum {
  1424.     gxTrayNameDataType            = 'tryn'
  1425. };
  1426.  
  1427. /* Resource type for manual feed preferences, stored in DTP. */
  1428. enum {
  1429.     gxManualFeedAlertPrefsType    = 'mfpr',
  1430.     gxManualFeedAlertPrefsID    = gxPrintingDriverBaseID
  1431. };
  1432.  
  1433. /* Resource type for desktop printer output characteristics, stored in DTP. */
  1434. enum {
  1435.     gxDriverOutputType            = 'outp',
  1436.     gxDriverOutputTypeID        = 1
  1437. };
  1438.  
  1439. /* IO Resources */
  1440. /* Resource type and ID for default IO and buffering resources */
  1441. enum {
  1442.     gxUniversalIOPrefsType        = 'iobm',
  1443.     gxUniversalIOPrefsID        = gxPrintingDriverBaseID
  1444. };
  1445.  
  1446. /*    Resource types and IDs for default implementation of CaptureOutputDevice.
  1447.         The default implementation of CaptureOutputDevice only handles PAP devices */
  1448. enum {
  1449.     gxCaptureType                = 'cpts',
  1450.     gxCaptureStringID            = gxPrintingDriverBaseID,
  1451.     gxReleaseStringID            = gxPrintingDriverBaseID + 1,
  1452.     gxUncapturedAppleTalkType    = gxPrintingDriverBaseID + 2,
  1453.     gxCapturedAppleTalkType        = gxPrintingDriverBaseID + 3
  1454. };
  1455.  
  1456. /* Resource type and ID for custom halftone matrix */
  1457. enum {
  1458.     gxCustomMatrixType            = 'dmat',
  1459.     gxCustomMatrixID            = gxPrintingDriverBaseID
  1460. };
  1461.  
  1462. /* Resource type and ID for raster driver rendering preferences */
  1463. enum {
  1464.     gxRasterPrefsType            = 'rdip',
  1465.     gxRasterPrefsID                = gxPrintingDriverBaseID
  1466. };
  1467.  
  1468. /* Resource type for specifiying a colorset */
  1469. enum {
  1470.     gxColorSetResType            = 'crst'
  1471. };
  1472.  
  1473. /* Resource type and ID for raster driver packaging preferences */
  1474. enum {
  1475.     gxRasterPackType            = 'rpck',
  1476.     gxRasterPackID                = gxPrintingDriverBaseID
  1477. };
  1478.  
  1479. /* Resource type and ID for raster driver packaging options */
  1480. enum {
  1481.     gxRasterNumNone                = 0,                            /* Number isn't output at all */
  1482.     gxRasterNumDirect            = 1,                            /* Lowest minWidth bytes as data */
  1483.     gxRasterNumToASCII            = 2                                /* minWidth ASCII characters */
  1484. };
  1485.  
  1486. enum {
  1487.     gxRasterPackOptionsType        = 'ropt',
  1488.     gxRasterPackOptionsID        = gxPrintingDriverBaseID
  1489. };
  1490.  
  1491. /* Resource type for the PostScript imaging system procedure set control resource */
  1492. enum {
  1493.     gxPostscriptProcSetControlType = 'prec'
  1494. };
  1495.  
  1496. /* Resource type for the PostScript imaging system printer font resource */
  1497. enum {
  1498.     gxPostscriptPrinterFontType    = 'pfnt'
  1499. };
  1500.  
  1501. /* Resource type and id for the PostScript imaging system imaging preferences */
  1502. enum {
  1503.     gxPostscriptPrefsType        = 'pdip',
  1504.     gxPostscriptPrefsID            = gxPrintingDriverBaseID
  1505. };
  1506.  
  1507. /* Resource type and id for the PostScript imaging system default scanning code */
  1508. enum {
  1509.     gxPostscriptScanningType    = 'scan',
  1510.     gxPostscriptScanningID        = gxPrintingDriverBaseID
  1511. };
  1512.  
  1513. /* Old Application Support Resources */
  1514. enum {
  1515.     gxCustType                    = 'cust',
  1516.     gxCustID                    = -8192
  1517. };
  1518.  
  1519. enum {
  1520.     gxReslType                    = 'resl',
  1521.     gxReslID                    = -8192
  1522. };
  1523.  
  1524. enum {
  1525.     gxDiscreteResolution        = 0
  1526. };
  1527.  
  1528. enum {
  1529.     gxStlDialogResID            = -8192
  1530. };
  1531.  
  1532. enum {
  1533.     gxJobDialogResID            = -8191
  1534. };
  1535.  
  1536. enum {
  1537.     gxScaleTableType            = 'stab',
  1538.     gxDITLControlType            = 'dctl'
  1539. };
  1540.  
  1541. /*    The default implementation of gxPrintDefault loads and
  1542.     PrValidates a print record stored in the following driver resource. */
  1543. enum {
  1544.     gxPrintRecordType            = 'PREC',
  1545.     gxDefaultPrintRecordID        = 0
  1546. };
  1547.  
  1548. /*
  1549.     -----------------------------------------------
  1550.  
  1551.     Resource types and IDs used in papertype files
  1552.  
  1553.     -----------------------------------------------
  1554. */
  1555. /* Resource type and ID for driver papertypes placed in individual files */
  1556. enum {
  1557.     gxSignatureType                = 'sig ',
  1558.     gxPapertypeSignatureID        = 0
  1559. };
  1560.  
  1561. /* Papertype creator types */
  1562. enum {
  1563.     gxDrvrPaperType                = 'drpt',
  1564.     gxSysPaperType                = 'sypt',                        /* System paper type creator */
  1565.     gxUserPaperType                = 'uspt',                        /* User paper type creator */
  1566. /* Driver creator types == driver file's creator value */
  1567.     gxPaperTypeType                = 'ptyp'
  1568. };
  1569.  
  1570. /*********************************************************************
  1571.                     Start of old "GXPrintingMessages.h/a/p" interface file.
  1572.             **********************************************************************/
  1573. /* ------------------------------------------------------------------------------
  1574.  
  1575.                                     Constants and Types
  1576.  
  1577. -------------------------------------------------------------------------------- */
  1578. /*
  1579.  
  1580.     ABSTRACT DATA TYPES
  1581.  
  1582. */
  1583. typedef struct gxPrivateFileRecord *gxSpoolFile;
  1584.  
  1585. typedef long gxPanelEvent;
  1586.  
  1587. /* Dialog panel event equates */
  1588.  
  1589. enum {
  1590.     gxPanelNoEvt                = (gxPanelEvent)0,
  1591.     gxPanelOpenEvt                = (gxPanelEvent)1,                /* Initialize and draw */
  1592.     gxPanelCloseEvt                = (gxPanelEvent)2,                /* Your panel is going away (panel switch, confirm or cancel) */
  1593.     gxPanelHitEvt                = (gxPanelEvent)3,                /* There's a hit in your panel */
  1594.     gxPanelActivateEvt            = (gxPanelEvent)4,                /* The dialog window has just been activated */
  1595.     gxPanelDeactivateEvt        = (gxPanelEvent)5,                /* The dialog window is about to be deactivated */
  1596.     gxPanelIconFocusEvt            = (gxPanelEvent)6,                /* The focus changes from the panel to the icon list */
  1597.     gxPanelPanelFocusEvt        = (gxPanelEvent)7,                /* The focus changes from the icon list to the panel */
  1598.     gxPanelFilterEvt            = (gxPanelEvent)8,                /* Every event is filtered */
  1599.     gxPanelCancelEvt            = (gxPanelEvent)9,                /* The user has cancelled the dialog */
  1600.     gxPanelConfirmEvt            = (gxPanelEvent)10,                /* The user has confirmed the dialog */
  1601.     gxPanelDialogEvt            = (gxPanelEvent)11,                /* Event to be handle by dialoghandler */
  1602.     gxPanelOtherEvt                = (gxPanelEvent)12,                /* osEvts, etc. */
  1603.     gxPanelUserWillConfirmEvt    = (gxPanelEvent)13                /* User has selected confirm, time to parse panel interdependencies */
  1604. };
  1605.  
  1606. /* Constants for panel responses to dialog handler calls */
  1607. typedef long gxPanelResult;
  1608.  
  1609.  
  1610. enum {
  1611.     gxPanelNoResult                = 0,
  1612.     gxPanelCancelConfirmation    = 1                                /* Only valid from panelUserWillConfirmEvt - used to keep the dialog from going away */
  1613. };
  1614.  
  1615. /* Panel event info record for FilterPanelEvent and HandlePanelEvent messages */
  1616. struct gxPanelInfoRecord {
  1617.     gxPanelEvent                    panelEvt;                    /* Why we were called */
  1618.     short                            panelResId;                    /* 'ppnl' resource id of current panel */
  1619.     DialogPtr                        pDlg;                        /* Pointer to dialog */
  1620.     EventRecord                        *theEvent;                    /* Pointer to event */
  1621.     short                            itemHit;                    /* Actual item number as Dialog Mgr thinks */
  1622.     short                            itemCount;                    /* Number of items before your items */
  1623.     short                            evtAction;                    /* Once this event is processed, the action that will result */
  1624. /* (evtAction is only meaningful during filtering) */
  1625.     short                            errorStringId;                /* STR id of string to put in error alert (0 means no string) */
  1626.     gxFormat                        theFormat;                    /* The current format (only meaningful in a format dialog) */
  1627.     void                            *refCon;                    /* refCon passed in PanelSetupRecord */
  1628. };
  1629. typedef struct gxPanelInfoRecord gxPanelInfoRecord;
  1630.  
  1631. /* Constants for the evtAction field in PanelInfoRecord */
  1632.  
  1633. enum {
  1634.     gxOtherAction                = 0,                            /* Current item will not change */
  1635.     gxClosePanelAction            = 1,                            /* Panel will be closed */
  1636.     gxCancelDialogAction        = 2,                            /* Dialog will be cancelled */
  1637.     gxConfirmDialogAction        = 3                                /* Dialog will be confirmed */
  1638. };
  1639.  
  1640. /* Constants for the panelKind field in gxPanelSetupRecord */
  1641. typedef long gxPrintingPanelKind;
  1642.  
  1643. /* The gxPanelSetupInfo structure is passed to GXSetupDialogPanel */
  1644. struct gxPanelSetupRecord {
  1645.     gxPrintingPanelKind                panelKind;
  1646.     short                            panelResId;
  1647.     short                            resourceRefNum;
  1648.     void                            *refCon;
  1649. };
  1650. typedef struct gxPanelSetupRecord gxPanelSetupRecord;
  1651.  
  1652.  
  1653. enum {
  1654.     gxApplicationPanel            = (gxPrintingPanelKind)0,
  1655.     gxExtensionPanel            = (gxPrintingPanelKind)1,
  1656.     gxDriverPanel                = (gxPrintingPanelKind)2
  1657. };
  1658.  
  1659. /* Constants returned by gxParsePageRange message */
  1660. typedef long gxParsePageRangeResult;
  1661.  
  1662.  
  1663. enum {
  1664.     gxRangeNotParsed            = (gxParsePageRangeResult)0,    /* Default initial value */
  1665.     gxRangeParsed                = (gxParsePageRangeResult)1,    /* Range has been parsed */
  1666.     gxRangeBadFromValue            = (gxParsePageRangeResult)2,    /* From value is bad */
  1667.     gxRangeBadToValue            = (gxParsePageRangeResult)3        /* To value is bad */
  1668. };
  1669.  
  1670. /*
  1671.  
  1672.     STATUS-RELATED CONSTANTS AND TYPES
  1673.  
  1674. */
  1675. /* Structure for status messages */
  1676. struct gxStatusRecord {
  1677.     unsigned short                    statusType;                    /* One of the ids listed above (nonFatalError, etc. ) */
  1678.     unsigned short                    statusId;                    /* Specific status (out of paper, etc.) */
  1679.     unsigned short                    statusAlertId;                /*    Printing alert id (if any) for status */
  1680.     gxOwnerSignature                statusOwner;                /* Creator type of status owner */
  1681.     short                            statResId;                    /* ID for 'stat' resource */
  1682.     short                            statResIndex;                /* Index into 'stat' resource for this status */
  1683.     short                            dialogResult;                /* ID of button string selected on dismissal of printing alert */
  1684.     unsigned short                    bufferLen;                    /* Number of bytes in status buffer - total record size must be <= 512 */
  1685.     char                            statusBuffer[1];            /* User response from alert */
  1686. };
  1687. typedef struct gxStatusRecord gxStatusRecord;
  1688.  
  1689. /* Constants for statusType field of gxStatusRecord */
  1690.  
  1691. enum {
  1692.     gxNonFatalError                = 1,                            /* An error occurred, but the job can continue */
  1693.     gxFatalError                = 2,                            /* A fatal error occurred-- halt job */
  1694.     gxPrinterReady                = 3,                            /* Tells QDGX to leave alert mode */
  1695.     gxUserAttention                = 4,                            /* Signals initiation of a modal alert */
  1696.     gxUserAlert                    = 5,                            /* Signals initiation of a moveable modal alert */
  1697.     gxPageTransmission            = 6,                            /* Signals page sent to printer, increments page count in strings to user */
  1698.     gxOpenConnectionStatus        = 7,                            /* Signals QDGX to begin animation on printer icon */
  1699.     gxInformationalStatus        = 8,                            /* Default status type, no side effects */
  1700.     gxSpoolingPageStatus        = 9,                            /* Signals page spooled, increments page count in spooling dialog */
  1701.     gxEndStatus                    = 10,                            /* Signals end of spooling */
  1702.     gxPercentageStatus            = 11                            /* Signals QDGX as to the amount of the job which is currently complete */
  1703. };
  1704.  
  1705. /* Structure for gxWriteStatusToDTPWindow message */
  1706. struct gxDisplayRecord {
  1707.     Boolean                            useText;                    /* Use text as opposed to a picture */
  1708.     char                            padByte;
  1709.     Handle                            hPicture;                    /* if !useText, the picture handle */
  1710.     Str255                            theText;                    /* if useText, the text */
  1711. };
  1712. typedef struct gxDisplayRecord gxDisplayRecord;
  1713.  
  1714. /*-----------------------------------------------*/
  1715. /* paper mapping-related constants and types...  */
  1716. /*-----------------------------------------------*/
  1717. typedef long gxTrayMapping;
  1718.  
  1719.  
  1720. enum {
  1721.     gxDefaultTrayMapping        = (gxTrayMapping)0,
  1722.     gxConfiguredTrayMapping        = (gxTrayMapping)1
  1723. };
  1724.  
  1725. /* ------------------------------------------------------------------------------
  1726.  
  1727.                 API Functions callable only from within message overrides
  1728.  
  1729. -------------------------------------------------------------------------------- */
  1730. #if !GENERATINGPOWERPC
  1731. extern OSErr GXPrintingDispatch(long selector, ...)
  1732.  SIXWORDINLINE(0x221F, 0x203C, 0x0001, 0x0000, 0xABFE, 0x598F);
  1733. #endif
  1734. extern gxJob GXGetJob(void)
  1735.  FOURWORDINLINE(0x203C, 0x0001, 1, 0xABFE);
  1736. extern short GXGetMessageHandlerResFile(void)
  1737.  FOURWORDINLINE(0x203C, 0x0001, 2, 0xABFE);
  1738. extern Boolean GXSpoolingAborted(void)
  1739.  FOURWORDINLINE(0x203C, 0x0001, 3, 0xABFE);
  1740. extern OSErr GXJobIdle(void)
  1741.  FOURWORDINLINE(0x203C, 0x0001, 4, 0xABFE);
  1742. extern OSErr GXReportStatus(long statusID, unsigned long statusIndex)
  1743.  FOURWORDINLINE(0x203C, 0x0001, 5, 0xABFE);
  1744. extern OSErr GXAlertTheUser(gxStatusRecord *statusRec)
  1745.  FOURWORDINLINE(0x203C, 0x0001, 6, 0xABFE);
  1746. extern OSErr GXSetupDialogPanel(gxPanelSetupRecord *panelRec)
  1747.  FOURWORDINLINE(0x203C, 0x0001, 7, 0xABFE);
  1748. extern OSErr GXCountTrays(gxTrayIndex *numTrays)
  1749.  FOURWORDINLINE(0x203C, 0x0001, 8, 0xABFE);
  1750. extern OSErr GXGetTrayName(gxTrayIndex trayNumber, Str31 trayName)
  1751.  FOURWORDINLINE(0x203C, 0x0001, 9, 0xABFE);
  1752. extern OSErr GXSetTrayPaperType(gxTrayIndex whichTray, gxPaperType aPapertype)
  1753.  FOURWORDINLINE(0x203C, 0x0001, 10, 0xABFE);
  1754. extern OSErr GXGetTrayPaperType(gxTrayIndex whichTray, gxPaperType aPapertype)
  1755.  FOURWORDINLINE(0x203C, 0x0001, 11, 0xABFE);
  1756. extern OSErr GXGetTrayMapping(gxTrayMapping *trayMapping)
  1757.  FOURWORDINLINE(0x203C, 0x0001, 12, 0xABFE);
  1758. extern void GXCleanupStartJob(void)
  1759.  FOURWORDINLINE(0x203C, 0x0001, 13, 0xABFE);
  1760. extern void GXCleanupStartPage(void)
  1761.  FOURWORDINLINE(0x203C, 0x0001, 14, 0xABFE);
  1762. extern void GXCleanupOpenConnection(void)
  1763.  FOURWORDINLINE(0x203C, 0x0001, 15, 0xABFE);
  1764. extern void GXCleanupStartSendPage(void)
  1765.  FOURWORDINLINE(0x203C, 0x0001, 16, 0xABFE);
  1766. /* ------------------------------------------------------------------------------
  1767.  
  1768.                     Constants and types for Universal Printing Messages
  1769.  
  1770. -------------------------------------------------------------------------------- */
  1771. /* Options for gxCreateSpoolFile message */
  1772.  
  1773. enum {
  1774.     gxNoCreateOptions            = 0x00000000,                    /* Just create the file */
  1775.     gxInhibitAlias                = 0x00000001,                    /* Do not create an alias in the PMD folder */
  1776.     gxInhibitUniqueName            = 0x00000002,                    /* Do not append to the filename to make it unique */
  1777.     gxResolveBitmapAlias        = 0x00000004                    /* Resolve bitmap aliases and duplicate data in file */
  1778. };
  1779.  
  1780. /* Options for gxCloseSpoolFile message */
  1781. enum {
  1782.     gxNoCloseOptions            = 0x00000000,                    /* Just close the file */
  1783.     gxDeleteOnClose                = 0x00000001,                    /* Delete the file rather than closing it */
  1784.     gxUpdateJobData                = 0x00000002,                    /* Write current job information into file prior to closing */
  1785.     gxMakeRemoteFile            = 0x00000004                    /* Mark job as a remote file */
  1786. };
  1787.  
  1788. /* Options for gxCreateImageFile message */
  1789. enum {
  1790.     gxNoImageFile                = 0x00000000,                    /* Don't create image file */
  1791.     gxMakeImageFile                = 0x00000001,                    /* Create an image file */
  1792.     gxEachPlane                    = 0x00000002,                    /* Only save up planes before rewinding */
  1793.     gxEachPage                    = 0x00000004,                    /* Save up entire pages before rewinding */
  1794.     gxEntireFile                = gxEachPlane + gxEachPage        /* Save up the entire file before rewinding */
  1795. };
  1796.  
  1797. /* Options for gxBufferData message */
  1798. enum {
  1799.     gxNoBufferOptions            = 0x00000000,
  1800.     gxMakeBufferHex                = 0x00000001,
  1801.     gxDontSplitBuffer            = 0x00000002
  1802. };
  1803.  
  1804. /* Structure for gxDumpBuffer and gxFreeBuffer messages */
  1805. struct gxPrintingBuffer {
  1806.     long                            size;                        /* Size of buffer in bytes */
  1807.     long                            userData;                    /* Client assigned id for the buffer */
  1808.     char                            data[1];                    /* Array of size bytes */
  1809. };
  1810. typedef struct gxPrintingBuffer gxPrintingBuffer;
  1811.  
  1812. /* Structure for gxRenderPage message */
  1813. struct gxPageInfoRecord {
  1814.     long                            docPageNum;                    /* Number of page being printed */
  1815.     long                            copyNum;                    /* Copy number being printed */
  1816.     Boolean                            formatChanged;                /* True if format changed from last page */
  1817.     Boolean                            pageChanged;                /* True if page contents changed from last page */
  1818.     long                            internalUse;                /* Private */
  1819. };
  1820. typedef struct gxPageInfoRecord gxPageInfoRecord;
  1821.  
  1822. /* ------------------------------------------------------------------------------
  1823.  
  1824.                                 Universal Printing Messages
  1825.  
  1826. -------------------------------------------------------------------------------- */
  1827. #define Send_GXFetchTaggedDriverData(tag, id, pHandle) Send_GXFetchTaggedData(tag, id, pHandle, 'drvr')
  1828. #define Forward_GXFetchTaggedDriverData(tag, id, pHandle) Forward_GXFetchTaggedData(tag, id, pHandle, 'drvr')
  1829. typedef OSErr (*GXJobIdleProcPtr)(void);
  1830.  
  1831. #if GENERATINGCFM
  1832. typedef UniversalProcPtr GXJobIdleUPP;
  1833. #else
  1834. typedef GXJobIdleProcPtr GXJobIdleUPP;
  1835. #endif
  1836.  
  1837. enum {
  1838.     uppGXJobIdleProcInfo = kCStackBased
  1839.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  1840. };
  1841.  
  1842. #if GENERATINGCFM
  1843. #define NewGXJobIdleProc(userRoutine)        \
  1844.         (GXJobIdleUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXJobIdleProcInfo, GetCurrentArchitecture())
  1845. #else
  1846. #define NewGXJobIdleProc(userRoutine)        \
  1847.         ((GXJobIdleUPP) (userRoutine))
  1848. #endif
  1849.  
  1850. #if GENERATINGCFM
  1851. #define CallGXJobIdleProc(userRoutine)        \
  1852.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXJobIdleProcInfo)
  1853. #else
  1854. #define CallGXJobIdleProc(userRoutine)        \
  1855.         (*(userRoutine))()
  1856. #endif
  1857.  
  1858. typedef GXJobIdleProcPtr GXJobIdleProc;
  1859.  
  1860. extern OSErr Send_GXJobIdle(void)
  1861.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 2, 0xABFB);
  1862. extern OSErr Forward_GXJobIdle(void)
  1863.  TWOWORDINLINE(0x7036, 0xABFB);
  1864. typedef OSErr (*GXJobStatusProcPtr)(gxStatusRecord *pStatus);
  1865.  
  1866. #if GENERATINGCFM
  1867. typedef UniversalProcPtr GXJobStatusUPP;
  1868. #else
  1869. typedef GXJobStatusProcPtr GXJobStatusUPP;
  1870. #endif
  1871.  
  1872. enum {
  1873.     uppGXJobStatusProcInfo = kCStackBased
  1874.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  1875.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxStatusRecord*)))
  1876. };
  1877.  
  1878. #if GENERATINGCFM
  1879. #define NewGXJobStatusProc(userRoutine)        \
  1880.         (GXJobStatusUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXJobStatusProcInfo, GetCurrentArchitecture())
  1881. #else
  1882. #define NewGXJobStatusProc(userRoutine)        \
  1883.         ((GXJobStatusUPP) (userRoutine))
  1884. #endif
  1885.  
  1886. #if GENERATINGCFM
  1887. #define CallGXJobStatusProc(userRoutine, pStatus)        \
  1888.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXJobStatusProcInfo, (pStatus))
  1889. #else
  1890. #define CallGXJobStatusProc(userRoutine, pStatus)        \
  1891.         (*(userRoutine))((pStatus))
  1892. #endif
  1893.  
  1894. typedef GXJobStatusProcPtr GXJobStatusProc;
  1895.  
  1896. extern OSErr Send_GXJobStatus(gxStatusRecord *pStatus)
  1897.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 3, 0xABFB);
  1898. extern OSErr Forward_GXJobStatus(gxStatusRecord *pStatus)
  1899.  TWOWORDINLINE(0x7036, 0xABFB);
  1900. typedef OSErr (*GXPrintingEventProcPtr)(EventRecord *evtRecord, Boolean filterEvent);
  1901.  
  1902. #if GENERATINGCFM
  1903. typedef UniversalProcPtr GXPrintingEventUPP;
  1904. #else
  1905. typedef GXPrintingEventProcPtr GXPrintingEventUPP;
  1906. #endif
  1907.  
  1908. enum {
  1909.     uppGXPrintingEventProcInfo = kCStackBased
  1910.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  1911.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(EventRecord*)))
  1912.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(Boolean)))
  1913. };
  1914.  
  1915. #if GENERATINGCFM
  1916. #define NewGXPrintingEventProc(userRoutine)        \
  1917.         (GXPrintingEventUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXPrintingEventProcInfo, GetCurrentArchitecture())
  1918. #else
  1919. #define NewGXPrintingEventProc(userRoutine)        \
  1920.         ((GXPrintingEventUPP) (userRoutine))
  1921. #endif
  1922.  
  1923. #if GENERATINGCFM
  1924. #define CallGXPrintingEventProc(userRoutine, evtRecord, filterEvent)        \
  1925.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXPrintingEventProcInfo, (evtRecord), (filterEvent))
  1926. #else
  1927. #define CallGXPrintingEventProc(userRoutine, evtRecord, filterEvent)        \
  1928.         (*(userRoutine))((evtRecord), (filterEvent))
  1929. #endif
  1930.  
  1931. typedef GXPrintingEventProcPtr GXPrintingEventProc;
  1932.  
  1933. extern OSErr Send_GXPrintingEvent(EventRecord *evtRecord, Boolean filterEvent)
  1934.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 4, 0xABFB);
  1935. extern OSErr Forward_GXPrintingEvent(EventRecord *evtRecord, Boolean filterEvent)
  1936.  TWOWORDINLINE(0x7036, 0xABFB);
  1937. typedef OSErr (*GXJobDefaultFormatDialogProcPtr)(gxDialogResult *dlgResult);
  1938.  
  1939. #if GENERATINGCFM
  1940. typedef UniversalProcPtr GXJobDefaultFormatDialogUPP;
  1941. #else
  1942. typedef GXJobDefaultFormatDialogProcPtr GXJobDefaultFormatDialogUPP;
  1943. #endif
  1944.  
  1945. enum {
  1946.     uppGXJobDefaultFormatDialogProcInfo = kCStackBased
  1947.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  1948.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxDialogResult*)))
  1949. };
  1950.  
  1951. #if GENERATINGCFM
  1952. #define NewGXJobDefaultFormatDialogProc(userRoutine)        \
  1953.         (GXJobDefaultFormatDialogUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXJobDefaultFormatDialogProcInfo, GetCurrentArchitecture())
  1954. #else
  1955. #define NewGXJobDefaultFormatDialogProc(userRoutine)        \
  1956.         ((GXJobDefaultFormatDialogUPP) (userRoutine))
  1957. #endif
  1958.  
  1959. #if GENERATINGCFM
  1960. #define CallGXJobDefaultFormatDialogProc(userRoutine, dlgResult)        \
  1961.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXJobDefaultFormatDialogProcInfo, (dlgResult))
  1962. #else
  1963. #define CallGXJobDefaultFormatDialogProc(userRoutine, dlgResult)        \
  1964.         (*(userRoutine))((dlgResult))
  1965. #endif
  1966.  
  1967. typedef GXJobDefaultFormatDialogProcPtr GXJobDefaultFormatDialogProc;
  1968.  
  1969. extern OSErr Send_GXJobDefaultFormatDialog(gxDialogResult *dlgResult)
  1970.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 5, 0xABFB);
  1971. extern OSErr Forward_GXJobDefaultFormatDialog(gxDialogResult *dlgResult)
  1972.  TWOWORDINLINE(0x7036, 0xABFB);
  1973. typedef OSErr (*GXFormatDialogProcPtr)(gxFormat theFormat, StringPtr title, gxDialogResult *dlgResult);
  1974.  
  1975. #if GENERATINGCFM
  1976. typedef UniversalProcPtr GXFormatDialogUPP;
  1977. #else
  1978. typedef GXFormatDialogProcPtr GXFormatDialogUPP;
  1979. #endif
  1980.  
  1981. enum {
  1982.     uppGXFormatDialogProcInfo = kCStackBased
  1983.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  1984.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxFormat)))
  1985.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(StringPtr)))
  1986.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(gxDialogResult*)))
  1987. };
  1988.  
  1989. #if GENERATINGCFM
  1990. #define NewGXFormatDialogProc(userRoutine)        \
  1991.         (GXFormatDialogUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFormatDialogProcInfo, GetCurrentArchitecture())
  1992. #else
  1993. #define NewGXFormatDialogProc(userRoutine)        \
  1994.         ((GXFormatDialogUPP) (userRoutine))
  1995. #endif
  1996.  
  1997. #if GENERATINGCFM
  1998. #define CallGXFormatDialogProc(userRoutine, theFormat, title, dlgResult)        \
  1999.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXFormatDialogProcInfo, (theFormat), (title), (dlgResult))
  2000. #else
  2001. #define CallGXFormatDialogProc(userRoutine, theFormat, title, dlgResult)        \
  2002.         (*(userRoutine))((theFormat), (title), (dlgResult))
  2003. #endif
  2004.  
  2005. typedef GXFormatDialogProcPtr GXFormatDialogProc;
  2006.  
  2007. extern OSErr Send_GXFormatDialog(gxFormat theFormat, StringPtr title, gxDialogResult *dlgResult)
  2008.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 6, 0xABFB);
  2009. extern OSErr Forward_GXFormatDialog(gxFormat theFormat, StringPtr title, gxDialogResult *dlgResult)
  2010.  TWOWORDINLINE(0x7036, 0xABFB);
  2011. typedef OSErr (*GXJobPrintDialogProcPtr)(gxDialogResult *dlgResult);
  2012.  
  2013. #if GENERATINGCFM
  2014. typedef UniversalProcPtr GXJobPrintDialogUPP;
  2015. #else
  2016. typedef GXJobPrintDialogProcPtr GXJobPrintDialogUPP;
  2017. #endif
  2018.  
  2019. enum {
  2020.     uppGXJobPrintDialogProcInfo = kCStackBased
  2021.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2022.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxDialogResult*)))
  2023. };
  2024.  
  2025. #if GENERATINGCFM
  2026. #define NewGXJobPrintDialogProc(userRoutine)        \
  2027.         (GXJobPrintDialogUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXJobPrintDialogProcInfo, GetCurrentArchitecture())
  2028. #else
  2029. #define NewGXJobPrintDialogProc(userRoutine)        \
  2030.         ((GXJobPrintDialogUPP) (userRoutine))
  2031. #endif
  2032.  
  2033. #if GENERATINGCFM
  2034. #define CallGXJobPrintDialogProc(userRoutine, dlgResult)        \
  2035.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXJobPrintDialogProcInfo, (dlgResult))
  2036. #else
  2037. #define CallGXJobPrintDialogProc(userRoutine, dlgResult)        \
  2038.         (*(userRoutine))((dlgResult))
  2039. #endif
  2040.  
  2041. typedef GXJobPrintDialogProcPtr GXJobPrintDialogProc;
  2042.  
  2043. extern OSErr Send_GXJobPrintDialog(gxDialogResult *dlgResult)
  2044.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 7, 0xABFB);
  2045. extern OSErr Forward_GXJobPrintDialog(gxDialogResult *dlgResult)
  2046.  TWOWORDINLINE(0x7036, 0xABFB);
  2047. typedef OSErr (*GXFilterPanelEventProcPtr)(gxPanelInfoRecord *pHitInfo, Boolean *returnImmed);
  2048.  
  2049. #if GENERATINGCFM
  2050. typedef UniversalProcPtr GXFilterPanelEventUPP;
  2051. #else
  2052. typedef GXFilterPanelEventProcPtr GXFilterPanelEventUPP;
  2053. #endif
  2054.  
  2055. enum {
  2056.     uppGXFilterPanelEventProcInfo = kCStackBased
  2057.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2058.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxPanelInfoRecord*)))
  2059.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(Boolean*)))
  2060. };
  2061.  
  2062. #if GENERATINGCFM
  2063. #define NewGXFilterPanelEventProc(userRoutine)        \
  2064.         (GXFilterPanelEventUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFilterPanelEventProcInfo, GetCurrentArchitecture())
  2065. #else
  2066. #define NewGXFilterPanelEventProc(userRoutine)        \
  2067.         ((GXFilterPanelEventUPP) (userRoutine))
  2068. #endif
  2069.  
  2070. #if GENERATINGCFM
  2071. #define CallGXFilterPanelEventProc(userRoutine, pHitInfo, returnImmed)        \
  2072.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXFilterPanelEventProcInfo, (pHitInfo), (returnImmed))
  2073. #else
  2074. #define CallGXFilterPanelEventProc(userRoutine, pHitInfo, returnImmed)        \
  2075.         (*(userRoutine))((pHitInfo), (returnImmed))
  2076. #endif
  2077.  
  2078. typedef GXFilterPanelEventProcPtr GXFilterPanelEventProc;
  2079.  
  2080. extern OSErr Send_GXFilterPanelEvent(gxPanelInfoRecord *pHitInfo, Boolean *returnImmed)
  2081.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 8, 0xABFB);
  2082. typedef OSErr (*GXHandlePanelEventProcPtr)(gxPanelInfoRecord *pHitInfo, gxPanelResult *panelResponse);
  2083.  
  2084. #if GENERATINGCFM
  2085. typedef UniversalProcPtr GXHandlePanelEventUPP;
  2086. #else
  2087. typedef GXHandlePanelEventProcPtr GXHandlePanelEventUPP;
  2088. #endif
  2089.  
  2090. enum {
  2091.     uppGXHandlePanelEventProcInfo = kCStackBased
  2092.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2093.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxPanelInfoRecord*)))
  2094.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(gxPanelResult*)))
  2095. };
  2096.  
  2097. #if GENERATINGCFM
  2098. #define NewGXHandlePanelEventProc(userRoutine)        \
  2099.         (GXHandlePanelEventUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandlePanelEventProcInfo, GetCurrentArchitecture())
  2100. #else
  2101. #define NewGXHandlePanelEventProc(userRoutine)        \
  2102.         ((GXHandlePanelEventUPP) (userRoutine))
  2103. #endif
  2104.  
  2105. #if GENERATINGCFM
  2106. #define CallGXHandlePanelEventProc(userRoutine, pHitInfo, panelResponse)        \
  2107.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXHandlePanelEventProcInfo, (pHitInfo), (panelResponse))
  2108. #else
  2109. #define CallGXHandlePanelEventProc(userRoutine, pHitInfo, panelResponse)        \
  2110.         (*(userRoutine))((pHitInfo), (panelResponse))
  2111. #endif
  2112.  
  2113. typedef GXHandlePanelEventProcPtr GXHandlePanelEventProc;
  2114.  
  2115. extern OSErr Send_GXHandlePanelEvent(gxPanelInfoRecord *pHitInfo, gxPanelResult *panelResponse)
  2116.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 9, 0xABFB);
  2117. typedef OSErr (*GXParsePageRangeProcPtr)(StringPtr fromString, StringPtr toString, gxParsePageRangeResult *result);
  2118.  
  2119. #if GENERATINGCFM
  2120. typedef UniversalProcPtr GXParsePageRangeUPP;
  2121. #else
  2122. typedef GXParsePageRangeProcPtr GXParsePageRangeUPP;
  2123. #endif
  2124.  
  2125. enum {
  2126.     uppGXParsePageRangeProcInfo = kCStackBased
  2127.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2128.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(StringPtr)))
  2129.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(StringPtr)))
  2130.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(gxParsePageRangeResult*)))
  2131. };
  2132.  
  2133. #if GENERATINGCFM
  2134. #define NewGXParsePageRangeProc(userRoutine)        \
  2135.         (GXParsePageRangeUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXParsePageRangeProcInfo, GetCurrentArchitecture())
  2136. #else
  2137. #define NewGXParsePageRangeProc(userRoutine)        \
  2138.         ((GXParsePageRangeUPP) (userRoutine))
  2139. #endif
  2140.  
  2141. #if GENERATINGCFM
  2142. #define CallGXParsePageRangeProc(userRoutine, fromString, toString, result)        \
  2143.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXParsePageRangeProcInfo, (fromString), (toString), (result))
  2144. #else
  2145. #define CallGXParsePageRangeProc(userRoutine, fromString, toString, result)        \
  2146.         (*(userRoutine))((fromString), (toString), (result))
  2147. #endif
  2148.  
  2149. typedef GXParsePageRangeProcPtr GXParsePageRangeProc;
  2150.  
  2151. extern OSErr Send_GXParsePageRange(StringPtr fromString, StringPtr toString, gxParsePageRangeResult *result)
  2152.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 10, 0xABFB);
  2153. extern OSErr Forward_GXParsePageRange(StringPtr fromString, StringPtr toString, gxParsePageRangeResult *result)
  2154.  TWOWORDINLINE(0x7036, 0xABFB);
  2155. typedef OSErr (*GXDefaultJobProcPtr)(void);
  2156.  
  2157. #if GENERATINGCFM
  2158. typedef UniversalProcPtr GXDefaultJobUPP;
  2159. #else
  2160. typedef GXDefaultJobProcPtr GXDefaultJobUPP;
  2161. #endif
  2162.  
  2163. enum {
  2164.     uppGXDefaultJobProcInfo = kCStackBased
  2165.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2166. };
  2167.  
  2168. #if GENERATINGCFM
  2169. #define NewGXDefaultJobProc(userRoutine)        \
  2170.         (GXDefaultJobUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultJobProcInfo, GetCurrentArchitecture())
  2171. #else
  2172. #define NewGXDefaultJobProc(userRoutine)        \
  2173.         ((GXDefaultJobUPP) (userRoutine))
  2174. #endif
  2175.  
  2176. #if GENERATINGCFM
  2177. #define CallGXDefaultJobProc(userRoutine)        \
  2178.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXDefaultJobProcInfo)
  2179. #else
  2180. #define CallGXDefaultJobProc(userRoutine)        \
  2181.         (*(userRoutine))()
  2182. #endif
  2183.  
  2184. typedef GXDefaultJobProcPtr GXDefaultJobProc;
  2185.  
  2186. extern OSErr Send_GXDefaultJob(void)
  2187.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 11, 0xABFB);
  2188. extern OSErr Forward_GXDefaultJob(void)
  2189.  TWOWORDINLINE(0x7036, 0xABFB);
  2190. typedef OSErr (*GXDefaultFormatProcPtr)(gxFormat theFormat);
  2191.  
  2192. #if GENERATINGCFM
  2193. typedef UniversalProcPtr GXDefaultFormatUPP;
  2194. #else
  2195. typedef GXDefaultFormatProcPtr GXDefaultFormatUPP;
  2196. #endif
  2197.  
  2198. enum {
  2199.     uppGXDefaultFormatProcInfo = kCStackBased
  2200.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2201.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxFormat)))
  2202. };
  2203.  
  2204. #if GENERATINGCFM
  2205. #define NewGXDefaultFormatProc(userRoutine)        \
  2206.         (GXDefaultFormatUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultFormatProcInfo, GetCurrentArchitecture())
  2207. #else
  2208. #define NewGXDefaultFormatProc(userRoutine)        \
  2209.         ((GXDefaultFormatUPP) (userRoutine))
  2210. #endif
  2211.  
  2212. #if GENERATINGCFM
  2213. #define CallGXDefaultFormatProc(userRoutine, theFormat)        \
  2214.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXDefaultFormatProcInfo, (theFormat))
  2215. #else
  2216. #define CallGXDefaultFormatProc(userRoutine, theFormat)        \
  2217.         (*(userRoutine))((theFormat))
  2218. #endif
  2219.  
  2220. typedef GXDefaultFormatProcPtr GXDefaultFormatProc;
  2221.  
  2222. extern OSErr Send_GXDefaultFormat(gxFormat theFormat)
  2223.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 12, 0xABFB);
  2224. extern OSErr Forward_GXDefaultFormat(gxFormat theFormat)
  2225.  TWOWORDINLINE(0x7036, 0xABFB);
  2226. typedef OSErr (*GXDefaultPaperTypeProcPtr)(gxPaperType thePaperType);
  2227.  
  2228. #if GENERATINGCFM
  2229. typedef UniversalProcPtr GXDefaultPaperTypeUPP;
  2230. #else
  2231. typedef GXDefaultPaperTypeProcPtr GXDefaultPaperTypeUPP;
  2232. #endif
  2233.  
  2234. enum {
  2235.     uppGXDefaultPaperTypeProcInfo = kCStackBased
  2236.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2237.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxPaperType)))
  2238. };
  2239.  
  2240. #if GENERATINGCFM
  2241. #define NewGXDefaultPaperTypeProc(userRoutine)        \
  2242.         (GXDefaultPaperTypeUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultPaperTypeProcInfo, GetCurrentArchitecture())
  2243. #else
  2244. #define NewGXDefaultPaperTypeProc(userRoutine)        \
  2245.         ((GXDefaultPaperTypeUPP) (userRoutine))
  2246. #endif
  2247.  
  2248. #if GENERATINGCFM
  2249. #define CallGXDefaultPaperTypeProc(userRoutine, thePaperType)        \
  2250.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXDefaultPaperTypeProcInfo, (thePaperType))
  2251. #else
  2252. #define CallGXDefaultPaperTypeProc(userRoutine, thePaperType)        \
  2253.         (*(userRoutine))((thePaperType))
  2254. #endif
  2255.  
  2256. typedef GXDefaultPaperTypeProcPtr GXDefaultPaperTypeProc;
  2257.  
  2258. extern OSErr Send_GXDefaultPaperType(gxPaperType thePaperType)
  2259.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 13, 0xABFB);
  2260. extern OSErr Forward_GXDefaultPaperType(gxPaperType thePaperType)
  2261.  TWOWORDINLINE(0x7036, 0xABFB);
  2262. typedef OSErr (*GXDefaultPrinterProcPtr)(gxPrinter thePrinter);
  2263.  
  2264. #if GENERATINGCFM
  2265. typedef UniversalProcPtr GXDefaultPrinterUPP;
  2266. #else
  2267. typedef GXDefaultPrinterProcPtr GXDefaultPrinterUPP;
  2268. #endif
  2269.  
  2270. enum {
  2271.     uppGXDefaultPrinterProcInfo = kCStackBased
  2272.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2273.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxPrinter)))
  2274. };
  2275.  
  2276. #if GENERATINGCFM
  2277. #define NewGXDefaultPrinterProc(userRoutine)        \
  2278.         (GXDefaultPrinterUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultPrinterProcInfo, GetCurrentArchitecture())
  2279. #else
  2280. #define NewGXDefaultPrinterProc(userRoutine)        \
  2281.         ((GXDefaultPrinterUPP) (userRoutine))
  2282. #endif
  2283.  
  2284. #if GENERATINGCFM
  2285. #define CallGXDefaultPrinterProc(userRoutine, thePrinter)        \
  2286.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXDefaultPrinterProcInfo, (thePrinter))
  2287. #else
  2288. #define CallGXDefaultPrinterProc(userRoutine, thePrinter)        \
  2289.         (*(userRoutine))((thePrinter))
  2290. #endif
  2291.  
  2292. typedef GXDefaultPrinterProcPtr GXDefaultPrinterProc;
  2293.  
  2294. extern OSErr Send_GXDefaultPrinter(gxPrinter thePrinter)
  2295.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 14, 0xABFB);
  2296. extern OSErr Forward_GXDefaultPrinter(gxPrinter thePrinter)
  2297.  TWOWORDINLINE(0x7036, 0xABFB);
  2298. typedef OSErr (*GXCreateSpoolFileProcPtr)(FSSpecPtr pFileSpec, long createOptions, gxSpoolFile *theSpoolFile);
  2299.  
  2300. #if GENERATINGCFM
  2301. typedef UniversalProcPtr GXCreateSpoolFileUPP;
  2302. #else
  2303. typedef GXCreateSpoolFileProcPtr GXCreateSpoolFileUPP;
  2304. #endif
  2305.  
  2306. enum {
  2307.     uppGXCreateSpoolFileProcInfo = kCStackBased
  2308.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2309.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(FSSpecPtr)))
  2310.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  2311.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(gxSpoolFile*)))
  2312. };
  2313.  
  2314. #if GENERATINGCFM
  2315. #define NewGXCreateSpoolFileProc(userRoutine)        \
  2316.         (GXCreateSpoolFileUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCreateSpoolFileProcInfo, GetCurrentArchitecture())
  2317. #else
  2318. #define NewGXCreateSpoolFileProc(userRoutine)        \
  2319.         ((GXCreateSpoolFileUPP) (userRoutine))
  2320. #endif
  2321.  
  2322. #if GENERATINGCFM
  2323. #define CallGXCreateSpoolFileProc(userRoutine, pFileSpec, createOptions, theSpoolFile)        \
  2324.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXCreateSpoolFileProcInfo, (pFileSpec), (createOptions), (theSpoolFile))
  2325. #else
  2326. #define CallGXCreateSpoolFileProc(userRoutine, pFileSpec, createOptions, theSpoolFile)        \
  2327.         (*(userRoutine))((pFileSpec), (createOptions), (theSpoolFile))
  2328. #endif
  2329.  
  2330. typedef GXCreateSpoolFileProcPtr GXCreateSpoolFileProc;
  2331.  
  2332. extern OSErr Send_GXCreateSpoolFile(FSSpecPtr pFileSpec, long createOptions, gxSpoolFile *theSpoolFile)
  2333.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 15, 0xABFB);
  2334. extern OSErr Forward_GXCreateSpoolFile(FSSpecPtr pFileSpec, long createOptions, gxSpoolFile *theSpoolFile)
  2335.  TWOWORDINLINE(0x7036, 0xABFB);
  2336. typedef OSErr (*GXSpoolPageProcPtr)(gxSpoolFile theSpoolFile, gxFormat theFormat, gxShape thePage);
  2337.  
  2338. #if GENERATINGCFM
  2339. typedef UniversalProcPtr GXSpoolPageUPP;
  2340. #else
  2341. typedef GXSpoolPageProcPtr GXSpoolPageUPP;
  2342. #endif
  2343.  
  2344. enum {
  2345.     uppGXSpoolPageProcInfo = kCStackBased
  2346.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2347.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxSpoolFile)))
  2348.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(gxFormat)))
  2349.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(gxShape)))
  2350. };
  2351.  
  2352. #if GENERATINGCFM
  2353. #define NewGXSpoolPageProc(userRoutine)        \
  2354.         (GXSpoolPageUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSpoolPageProcInfo, GetCurrentArchitecture())
  2355. #else
  2356. #define NewGXSpoolPageProc(userRoutine)        \
  2357.         ((GXSpoolPageUPP) (userRoutine))
  2358. #endif
  2359.  
  2360. #if GENERATINGCFM
  2361. #define CallGXSpoolPageProc(userRoutine, theSpoolFile, theFormat, thePage)        \
  2362.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXSpoolPageProcInfo, (theSpoolFile), (theFormat), (thePage))
  2363. #else
  2364. #define CallGXSpoolPageProc(userRoutine, theSpoolFile, theFormat, thePage)        \
  2365.         (*(userRoutine))((theSpoolFile), (theFormat), (thePage))
  2366. #endif
  2367.  
  2368. typedef GXSpoolPageProcPtr GXSpoolPageProc;
  2369.  
  2370. extern OSErr Send_GXSpoolPage(gxSpoolFile theSpoolFile, gxFormat theFormat, gxShape thePage)
  2371.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 16, 0xABFB);
  2372. extern OSErr Forward_GXSpoolPage(gxSpoolFile theSpoolFile, gxFormat theFormat, gxShape thePage)
  2373.  TWOWORDINLINE(0x7036, 0xABFB);
  2374. typedef OSErr (*GXSpoolDataProcPtr)(gxSpoolFile theSpoolFile, Ptr data, long *length);
  2375.  
  2376. #if GENERATINGCFM
  2377. typedef UniversalProcPtr GXSpoolDataUPP;
  2378. #else
  2379. typedef GXSpoolDataProcPtr GXSpoolDataUPP;
  2380. #endif
  2381.  
  2382. enum {
  2383.     uppGXSpoolDataProcInfo = kCStackBased
  2384.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2385.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxSpoolFile)))
  2386.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(Ptr)))
  2387.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long*)))
  2388. };
  2389.  
  2390. #if GENERATINGCFM
  2391. #define NewGXSpoolDataProc(userRoutine)        \
  2392.         (GXSpoolDataUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSpoolDataProcInfo, GetCurrentArchitecture())
  2393. #else
  2394. #define NewGXSpoolDataProc(userRoutine)        \
  2395.         ((GXSpoolDataUPP) (userRoutine))
  2396. #endif
  2397.  
  2398. #if GENERATINGCFM
  2399. #define CallGXSpoolDataProc(userRoutine, theSpoolFile, data, length)        \
  2400.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXSpoolDataProcInfo, (theSpoolFile), (data), (length))
  2401. #else
  2402. #define CallGXSpoolDataProc(userRoutine, theSpoolFile, data, length)        \
  2403.         (*(userRoutine))((theSpoolFile), (data), (length))
  2404. #endif
  2405.  
  2406. typedef GXSpoolDataProcPtr GXSpoolDataProc;
  2407.  
  2408. extern OSErr Send_GXSpoolData(gxSpoolFile theSpoolFile, Ptr data, long *length)
  2409.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 17, 0xABFB);
  2410. extern OSErr Forward_GXSpoolData(gxSpoolFile theSpoolFile, Ptr data, long *length)
  2411.  TWOWORDINLINE(0x7036, 0xABFB);
  2412. typedef OSErr (*GXSpoolResourceProcPtr)(gxSpoolFile theSpoolFile, Handle theResource, ResType theType, long id);
  2413.  
  2414. #if GENERATINGCFM
  2415. typedef UniversalProcPtr GXSpoolResourceUPP;
  2416. #else
  2417. typedef GXSpoolResourceProcPtr GXSpoolResourceUPP;
  2418. #endif
  2419.  
  2420. enum {
  2421.     uppGXSpoolResourceProcInfo = kCStackBased
  2422.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2423.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxSpoolFile)))
  2424.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(Handle)))
  2425.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(ResType)))
  2426.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(long)))
  2427. };
  2428.  
  2429. #if GENERATINGCFM
  2430. #define NewGXSpoolResourceProc(userRoutine)        \
  2431.         (GXSpoolResourceUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSpoolResourceProcInfo, GetCurrentArchitecture())
  2432. #else
  2433. #define NewGXSpoolResourceProc(userRoutine)        \
  2434.         ((GXSpoolResourceUPP) (userRoutine))
  2435. #endif
  2436.  
  2437. #if GENERATINGCFM
  2438. #define CallGXSpoolResourceProc(userRoutine, theSpoolFile, theResource, theType, id)        \
  2439.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXSpoolResourceProcInfo, (theSpoolFile), (theResource), (theType), (id))
  2440. #else
  2441. #define CallGXSpoolResourceProc(userRoutine, theSpoolFile, theResource, theType, id)        \
  2442.         (*(userRoutine))((theSpoolFile), (theResource), (theType), (id))
  2443. #endif
  2444.  
  2445. typedef GXSpoolResourceProcPtr GXSpoolResourceProc;
  2446.  
  2447. extern OSErr Send_GXSpoolResource(gxSpoolFile theSpoolFile, Handle theResource, ResType theType, long id)
  2448.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 18, 0xABFB);
  2449. extern OSErr Forward_GXSpoolResource(gxSpoolFile theSpoolFile, Handle theResource, ResType theType, long id)
  2450.  TWOWORDINLINE(0x7036, 0xABFB);
  2451. typedef OSErr (*GXCompleteSpoolFileProcPtr)(gxSpoolFile theSpoolFile);
  2452.  
  2453. #if GENERATINGCFM
  2454. typedef UniversalProcPtr GXCompleteSpoolFileUPP;
  2455. #else
  2456. typedef GXCompleteSpoolFileProcPtr GXCompleteSpoolFileUPP;
  2457. #endif
  2458.  
  2459. enum {
  2460.     uppGXCompleteSpoolFileProcInfo = kCStackBased
  2461.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2462.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxSpoolFile)))
  2463. };
  2464.  
  2465. #if GENERATINGCFM
  2466. #define NewGXCompleteSpoolFileProc(userRoutine)        \
  2467.         (GXCompleteSpoolFileUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCompleteSpoolFileProcInfo, GetCurrentArchitecture())
  2468. #else
  2469. #define NewGXCompleteSpoolFileProc(userRoutine)        \
  2470.         ((GXCompleteSpoolFileUPP) (userRoutine))
  2471. #endif
  2472.  
  2473. #if GENERATINGCFM
  2474. #define CallGXCompleteSpoolFileProc(userRoutine, theSpoolFile)        \
  2475.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXCompleteSpoolFileProcInfo, (theSpoolFile))
  2476. #else
  2477. #define CallGXCompleteSpoolFileProc(userRoutine, theSpoolFile)        \
  2478.         (*(userRoutine))((theSpoolFile))
  2479. #endif
  2480.  
  2481. typedef GXCompleteSpoolFileProcPtr GXCompleteSpoolFileProc;
  2482.  
  2483. extern OSErr Send_GXCompleteSpoolFile(gxSpoolFile theSpoolFile)
  2484.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 19, 0xABFB);
  2485. extern OSErr Forward_GXCompleteSpoolFile(gxSpoolFile theSpoolFile)
  2486.  TWOWORDINLINE(0x7036, 0xABFB);
  2487. typedef OSErr (*GXCountPagesProcPtr)(gxSpoolFile theSpoolFile, long *numPages);
  2488.  
  2489. #if GENERATINGCFM
  2490. typedef UniversalProcPtr GXCountPagesUPP;
  2491. #else
  2492. typedef GXCountPagesProcPtr GXCountPagesUPP;
  2493. #endif
  2494.  
  2495. enum {
  2496.     uppGXCountPagesProcInfo = kCStackBased
  2497.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2498.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxSpoolFile)))
  2499.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long*)))
  2500. };
  2501.  
  2502. #if GENERATINGCFM
  2503. #define NewGXCountPagesProc(userRoutine)        \
  2504.         (GXCountPagesUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCountPagesProcInfo, GetCurrentArchitecture())
  2505. #else
  2506. #define NewGXCountPagesProc(userRoutine)        \
  2507.         ((GXCountPagesUPP) (userRoutine))
  2508. #endif
  2509.  
  2510. #if GENERATINGCFM
  2511. #define CallGXCountPagesProc(userRoutine, theSpoolFile, numPages)        \
  2512.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXCountPagesProcInfo, (theSpoolFile), (numPages))
  2513. #else
  2514. #define CallGXCountPagesProc(userRoutine, theSpoolFile, numPages)        \
  2515.         (*(userRoutine))((theSpoolFile), (numPages))
  2516. #endif
  2517.  
  2518. typedef GXCountPagesProcPtr GXCountPagesProc;
  2519.  
  2520. extern OSErr Send_GXCountPages(gxSpoolFile theSpoolFile, long *numPages)
  2521.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 20, 0xABFB);
  2522. extern OSErr Forward_GXCountPages(gxSpoolFile theSpoolFile, long *numPages)
  2523.  TWOWORDINLINE(0x7036, 0xABFB);
  2524. typedef OSErr (*GXDespoolPageProcPtr)(gxSpoolFile theSpoolFile, long numPages, gxFormat theFormat, gxShape *thePage, Boolean *formatChanged);
  2525.  
  2526. #if GENERATINGCFM
  2527. typedef UniversalProcPtr GXDespoolPageUPP;
  2528. #else
  2529. typedef GXDespoolPageProcPtr GXDespoolPageUPP;
  2530. #endif
  2531.  
  2532. enum {
  2533.     uppGXDespoolPageProcInfo = kCStackBased
  2534.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2535.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxSpoolFile)))
  2536.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  2537.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(gxFormat)))
  2538.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(gxShape*)))
  2539.          | STACK_ROUTINE_PARAMETER(5, SIZE_CODE(sizeof(Boolean*)))
  2540. };
  2541.  
  2542. #if GENERATINGCFM
  2543. #define NewGXDespoolPageProc(userRoutine)        \
  2544.         (GXDespoolPageUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDespoolPageProcInfo, GetCurrentArchitecture())
  2545. #else
  2546. #define NewGXDespoolPageProc(userRoutine)        \
  2547.         ((GXDespoolPageUPP) (userRoutine))
  2548. #endif
  2549.  
  2550. #if GENERATINGCFM
  2551. #define CallGXDespoolPageProc(userRoutine, theSpoolFile, numPages, theFormat, thePage, formatChanged)        \
  2552.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXDespoolPageProcInfo, (theSpoolFile), (numPages), (theFormat), (thePage), (formatChanged))
  2553. #else
  2554. #define CallGXDespoolPageProc(userRoutine, theSpoolFile, numPages, theFormat, thePage, formatChanged)        \
  2555.         (*(userRoutine))((theSpoolFile), (numPages), (theFormat), (thePage), (formatChanged))
  2556. #endif
  2557.  
  2558. typedef GXDespoolPageProcPtr GXDespoolPageProc;
  2559.  
  2560. extern OSErr Send_GXDespoolPage(gxSpoolFile theSpoolFile, long numPages, gxFormat theFormat, gxShape *thePage, Boolean *formatChanged)
  2561.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 21, 0xABFB);
  2562. extern OSErr Forward_GXDespoolPage(gxSpoolFile theSpoolFile, long numPages, gxFormat theFormat, gxShape *thePage, Boolean *formatChanged)
  2563.  TWOWORDINLINE(0x7036, 0xABFB);
  2564. typedef OSErr (*GXDespoolDataProcPtr)(gxSpoolFile theSpoolFile, Ptr data, long *length);
  2565.  
  2566. #if GENERATINGCFM
  2567. typedef UniversalProcPtr GXDespoolDataUPP;
  2568. #else
  2569. typedef GXDespoolDataProcPtr GXDespoolDataUPP;
  2570. #endif
  2571.  
  2572. enum {
  2573.     uppGXDespoolDataProcInfo = kCStackBased
  2574.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2575.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxSpoolFile)))
  2576.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(Ptr)))
  2577.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long*)))
  2578. };
  2579.  
  2580. #if GENERATINGCFM
  2581. #define NewGXDespoolDataProc(userRoutine)        \
  2582.         (GXDespoolDataUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDespoolDataProcInfo, GetCurrentArchitecture())
  2583. #else
  2584. #define NewGXDespoolDataProc(userRoutine)        \
  2585.         ((GXDespoolDataUPP) (userRoutine))
  2586. #endif
  2587.  
  2588. #if GENERATINGCFM
  2589. #define CallGXDespoolDataProc(userRoutine, theSpoolFile, data, length)        \
  2590.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXDespoolDataProcInfo, (theSpoolFile), (data), (length))
  2591. #else
  2592. #define CallGXDespoolDataProc(userRoutine, theSpoolFile, data, length)        \
  2593.         (*(userRoutine))((theSpoolFile), (data), (length))
  2594. #endif
  2595.  
  2596. typedef GXDespoolDataProcPtr GXDespoolDataProc;
  2597.  
  2598. extern OSErr Send_GXDespoolData(gxSpoolFile theSpoolFile, Ptr data, long *length)
  2599.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 22, 0xABFB);
  2600. extern OSErr Forward_GXDespoolData(gxSpoolFile theSpoolFile, Ptr data, long *length)
  2601.  TWOWORDINLINE(0x7036, 0xABFB);
  2602. typedef OSErr (*GXDespoolResourceProcPtr)(gxSpoolFile theSpoolFile, ResType theType, long id, Handle *theResource);
  2603.  
  2604. #if GENERATINGCFM
  2605. typedef UniversalProcPtr GXDespoolResourceUPP;
  2606. #else
  2607. typedef GXDespoolResourceProcPtr GXDespoolResourceUPP;
  2608. #endif
  2609.  
  2610. enum {
  2611.     uppGXDespoolResourceProcInfo = kCStackBased
  2612.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2613.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxSpoolFile)))
  2614.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(ResType)))
  2615.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long)))
  2616.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(Handle*)))
  2617. };
  2618.  
  2619. #if GENERATINGCFM
  2620. #define NewGXDespoolResourceProc(userRoutine)        \
  2621.         (GXDespoolResourceUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDespoolResourceProcInfo, GetCurrentArchitecture())
  2622. #else
  2623. #define NewGXDespoolResourceProc(userRoutine)        \
  2624.         ((GXDespoolResourceUPP) (userRoutine))
  2625. #endif
  2626.  
  2627. #if GENERATINGCFM
  2628. #define CallGXDespoolResourceProc(userRoutine, theSpoolFile, theType, id, theResource)        \
  2629.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXDespoolResourceProcInfo, (theSpoolFile), (theType), (id), (theResource))
  2630. #else
  2631. #define CallGXDespoolResourceProc(userRoutine, theSpoolFile, theType, id, theResource)        \
  2632.         (*(userRoutine))((theSpoolFile), (theType), (id), (theResource))
  2633. #endif
  2634.  
  2635. typedef GXDespoolResourceProcPtr GXDespoolResourceProc;
  2636.  
  2637. extern OSErr Send_GXDespoolResource(gxSpoolFile theSpoolFile, ResType theType, long id, Handle *theResource)
  2638.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 23, 0xABFB);
  2639. extern OSErr Forward_GXDespoolResource(gxSpoolFile theSpoolFile, ResType theType, long id, Handle *theResource)
  2640.  TWOWORDINLINE(0x7036, 0xABFB);
  2641. typedef OSErr (*GXCloseSpoolFileProcPtr)(gxSpoolFile theSpoolFile, long closeOptions);
  2642.  
  2643. #if GENERATINGCFM
  2644. typedef UniversalProcPtr GXCloseSpoolFileUPP;
  2645. #else
  2646. typedef GXCloseSpoolFileProcPtr GXCloseSpoolFileUPP;
  2647. #endif
  2648.  
  2649. enum {
  2650.     uppGXCloseSpoolFileProcInfo = kCStackBased
  2651.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2652.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxSpoolFile)))
  2653.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  2654. };
  2655.  
  2656. #if GENERATINGCFM
  2657. #define NewGXCloseSpoolFileProc(userRoutine)        \
  2658.         (GXCloseSpoolFileUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCloseSpoolFileProcInfo, GetCurrentArchitecture())
  2659. #else
  2660. #define NewGXCloseSpoolFileProc(userRoutine)        \
  2661.         ((GXCloseSpoolFileUPP) (userRoutine))
  2662. #endif
  2663.  
  2664. #if GENERATINGCFM
  2665. #define CallGXCloseSpoolFileProc(userRoutine, theSpoolFile, closeOptions)        \
  2666.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXCloseSpoolFileProcInfo, (theSpoolFile), (closeOptions))
  2667. #else
  2668. #define CallGXCloseSpoolFileProc(userRoutine, theSpoolFile, closeOptions)        \
  2669.         (*(userRoutine))((theSpoolFile), (closeOptions))
  2670. #endif
  2671.  
  2672. typedef GXCloseSpoolFileProcPtr GXCloseSpoolFileProc;
  2673.  
  2674. extern OSErr Send_GXCloseSpoolFile(gxSpoolFile theSpoolFile, long closeOptions)
  2675.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 24, 0xABFB);
  2676. extern OSErr Forward_GXCloseSpoolFile(gxSpoolFile theSpoolFile, long closeOptions)
  2677.  TWOWORDINLINE(0x7036, 0xABFB);
  2678. typedef OSErr (*GXStartJobProcPtr)(StringPtr docName, long pageCount);
  2679.  
  2680. #if GENERATINGCFM
  2681. typedef UniversalProcPtr GXStartJobUPP;
  2682. #else
  2683. typedef GXStartJobProcPtr GXStartJobUPP;
  2684. #endif
  2685.  
  2686. enum {
  2687.     uppGXStartJobProcInfo = kCStackBased
  2688.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2689.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(StringPtr)))
  2690.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  2691. };
  2692.  
  2693. #if GENERATINGCFM
  2694. #define NewGXStartJobProc(userRoutine)        \
  2695.         (GXStartJobUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXStartJobProcInfo, GetCurrentArchitecture())
  2696. #else
  2697. #define NewGXStartJobProc(userRoutine)        \
  2698.         ((GXStartJobUPP) (userRoutine))
  2699. #endif
  2700.  
  2701. #if GENERATINGCFM
  2702. #define CallGXStartJobProc(userRoutine, docName, pageCount)        \
  2703.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXStartJobProcInfo, (docName), (pageCount))
  2704. #else
  2705. #define CallGXStartJobProc(userRoutine, docName, pageCount)        \
  2706.         (*(userRoutine))((docName), (pageCount))
  2707. #endif
  2708.  
  2709. typedef GXStartJobProcPtr GXStartJobProc;
  2710.  
  2711. extern OSErr Send_GXStartJob(StringPtr docName, long pageCount)
  2712.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 25, 0xABFB);
  2713. extern OSErr Forward_GXStartJob(StringPtr docName, long pageCount)
  2714.  TWOWORDINLINE(0x7036, 0xABFB);
  2715. typedef OSErr (*GXFinishJobProcPtr)(void);
  2716.  
  2717. #if GENERATINGCFM
  2718. typedef UniversalProcPtr GXFinishJobUPP;
  2719. #else
  2720. typedef GXFinishJobProcPtr GXFinishJobUPP;
  2721. #endif
  2722.  
  2723. enum {
  2724.     uppGXFinishJobProcInfo = kCStackBased
  2725.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2726. };
  2727.  
  2728. #if GENERATINGCFM
  2729. #define NewGXFinishJobProc(userRoutine)        \
  2730.         (GXFinishJobUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFinishJobProcInfo, GetCurrentArchitecture())
  2731. #else
  2732. #define NewGXFinishJobProc(userRoutine)        \
  2733.         ((GXFinishJobUPP) (userRoutine))
  2734. #endif
  2735.  
  2736. #if GENERATINGCFM
  2737. #define CallGXFinishJobProc(userRoutine)        \
  2738.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXFinishJobProcInfo)
  2739. #else
  2740. #define CallGXFinishJobProc(userRoutine)        \
  2741.         (*(userRoutine))()
  2742. #endif
  2743.  
  2744. typedef GXFinishJobProcPtr GXFinishJobProc;
  2745.  
  2746. extern OSErr Send_GXFinishJob(void)
  2747.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 26, 0xABFB);
  2748. extern OSErr Forward_GXFinishJob(void)
  2749.  TWOWORDINLINE(0x7036, 0xABFB);
  2750. typedef OSErr (*GXStartPageProcPtr)(gxFormat theFormat, long numViewPorts, gxViewPort *viewPortList);
  2751.  
  2752. #if GENERATINGCFM
  2753. typedef UniversalProcPtr GXStartPageUPP;
  2754. #else
  2755. typedef GXStartPageProcPtr GXStartPageUPP;
  2756. #endif
  2757.  
  2758. enum {
  2759.     uppGXStartPageProcInfo = kCStackBased
  2760.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2761.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxFormat)))
  2762.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  2763.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(gxViewPort*)))
  2764. };
  2765.  
  2766. #if GENERATINGCFM
  2767. #define NewGXStartPageProc(userRoutine)        \
  2768.         (GXStartPageUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXStartPageProcInfo, GetCurrentArchitecture())
  2769. #else
  2770. #define NewGXStartPageProc(userRoutine)        \
  2771.         ((GXStartPageUPP) (userRoutine))
  2772. #endif
  2773.  
  2774. #if GENERATINGCFM
  2775. #define CallGXStartPageProc(userRoutine, theFormat, numViewPorts, viewPortList)        \
  2776.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXStartPageProcInfo, (theFormat), (numViewPorts), (viewPortList))
  2777. #else
  2778. #define CallGXStartPageProc(userRoutine, theFormat, numViewPorts, viewPortList)        \
  2779.         (*(userRoutine))((theFormat), (numViewPorts), (viewPortList))
  2780. #endif
  2781.  
  2782. typedef GXStartPageProcPtr GXStartPageProc;
  2783.  
  2784. extern OSErr Send_GXStartPage(gxFormat theFormat, long numViewPorts, gxViewPort *viewPortList)
  2785.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 27, 0xABFB);
  2786. extern OSErr Forward_GXStartPage(gxFormat theFormat, long numViewPorts, gxViewPort *viewPortList)
  2787.  TWOWORDINLINE(0x7036, 0xABFB);
  2788. typedef OSErr (*GXFinishPageProcPtr)(void);
  2789.  
  2790. #if GENERATINGCFM
  2791. typedef UniversalProcPtr GXFinishPageUPP;
  2792. #else
  2793. typedef GXFinishPageProcPtr GXFinishPageUPP;
  2794. #endif
  2795.  
  2796. enum {
  2797.     uppGXFinishPageProcInfo = kCStackBased
  2798.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2799. };
  2800.  
  2801. #if GENERATINGCFM
  2802. #define NewGXFinishPageProc(userRoutine)        \
  2803.         (GXFinishPageUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFinishPageProcInfo, GetCurrentArchitecture())
  2804. #else
  2805. #define NewGXFinishPageProc(userRoutine)        \
  2806.         ((GXFinishPageUPP) (userRoutine))
  2807. #endif
  2808.  
  2809. #if GENERATINGCFM
  2810. #define CallGXFinishPageProc(userRoutine)        \
  2811.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXFinishPageProcInfo)
  2812. #else
  2813. #define CallGXFinishPageProc(userRoutine)        \
  2814.         (*(userRoutine))()
  2815. #endif
  2816.  
  2817. typedef GXFinishPageProcPtr GXFinishPageProc;
  2818.  
  2819. extern OSErr Send_GXFinishPage(void)
  2820.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 28, 0xABFB);
  2821. extern OSErr Forward_GXFinishPage(void)
  2822.  TWOWORDINLINE(0x7036, 0xABFB);
  2823. typedef OSErr (*GXPrintPageProcPtr)(gxFormat theFormat, gxShape thePage);
  2824.  
  2825. #if GENERATINGCFM
  2826. typedef UniversalProcPtr GXPrintPageUPP;
  2827. #else
  2828. typedef GXPrintPageProcPtr GXPrintPageUPP;
  2829. #endif
  2830.  
  2831. enum {
  2832.     uppGXPrintPageProcInfo = kCStackBased
  2833.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2834.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxFormat)))
  2835.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(gxShape)))
  2836. };
  2837.  
  2838. #if GENERATINGCFM
  2839. #define NewGXPrintPageProc(userRoutine)        \
  2840.         (GXPrintPageUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXPrintPageProcInfo, GetCurrentArchitecture())
  2841. #else
  2842. #define NewGXPrintPageProc(userRoutine)        \
  2843.         ((GXPrintPageUPP) (userRoutine))
  2844. #endif
  2845.  
  2846. #if GENERATINGCFM
  2847. #define CallGXPrintPageProc(userRoutine, theFormat, thePage)        \
  2848.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXPrintPageProcInfo, (theFormat), (thePage))
  2849. #else
  2850. #define CallGXPrintPageProc(userRoutine, theFormat, thePage)        \
  2851.         (*(userRoutine))((theFormat), (thePage))
  2852. #endif
  2853.  
  2854. typedef GXPrintPageProcPtr GXPrintPageProc;
  2855.  
  2856. extern OSErr Send_GXPrintPage(gxFormat theFormat, gxShape thePage)
  2857.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 29, 0xABFB);
  2858. extern OSErr Forward_GXPrintPage(gxFormat theFormat, gxShape thePage)
  2859.  TWOWORDINLINE(0x7036, 0xABFB);
  2860. typedef OSErr (*GXSetupImageDataProcPtr)(void *imageData);
  2861.  
  2862. #if GENERATINGCFM
  2863. typedef UniversalProcPtr GXSetupImageDataUPP;
  2864. #else
  2865. typedef GXSetupImageDataProcPtr GXSetupImageDataUPP;
  2866. #endif
  2867.  
  2868. enum {
  2869.     uppGXSetupImageDataProcInfo = kCStackBased
  2870.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2871.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(void*)))
  2872. };
  2873.  
  2874. #if GENERATINGCFM
  2875. #define NewGXSetupImageDataProc(userRoutine)        \
  2876.         (GXSetupImageDataUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSetupImageDataProcInfo, GetCurrentArchitecture())
  2877. #else
  2878. #define NewGXSetupImageDataProc(userRoutine)        \
  2879.         ((GXSetupImageDataUPP) (userRoutine))
  2880. #endif
  2881.  
  2882. #if GENERATINGCFM
  2883. #define CallGXSetupImageDataProc(userRoutine, imageData)        \
  2884.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXSetupImageDataProcInfo, (imageData))
  2885. #else
  2886. #define CallGXSetupImageDataProc(userRoutine, imageData)        \
  2887.         (*(userRoutine))((imageData))
  2888. #endif
  2889.  
  2890. typedef GXSetupImageDataProcPtr GXSetupImageDataProc;
  2891.  
  2892. extern OSErr Send_GXSetupImageData(void *imageData)
  2893.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 30, 0xABFB);
  2894. extern OSErr Forward_GXSetupImageData(void *imageData)
  2895.  TWOWORDINLINE(0x7036, 0xABFB);
  2896. typedef OSErr (*GXImageJobProcPtr)(gxSpoolFile theSpoolFile, long *closeOptions);
  2897.  
  2898. #if GENERATINGCFM
  2899. typedef UniversalProcPtr GXImageJobUPP;
  2900. #else
  2901. typedef GXImageJobProcPtr GXImageJobUPP;
  2902. #endif
  2903.  
  2904. enum {
  2905.     uppGXImageJobProcInfo = kCStackBased
  2906.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2907.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxSpoolFile)))
  2908.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long*)))
  2909. };
  2910.  
  2911. #if GENERATINGCFM
  2912. #define NewGXImageJobProc(userRoutine)        \
  2913.         (GXImageJobUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXImageJobProcInfo, GetCurrentArchitecture())
  2914. #else
  2915. #define NewGXImageJobProc(userRoutine)        \
  2916.         ((GXImageJobUPP) (userRoutine))
  2917. #endif
  2918.  
  2919. #if GENERATINGCFM
  2920. #define CallGXImageJobProc(userRoutine, theSpoolFile, closeOptions)        \
  2921.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXImageJobProcInfo, (theSpoolFile), (closeOptions))
  2922. #else
  2923. #define CallGXImageJobProc(userRoutine, theSpoolFile, closeOptions)        \
  2924.         (*(userRoutine))((theSpoolFile), (closeOptions))
  2925. #endif
  2926.  
  2927. typedef GXImageJobProcPtr GXImageJobProc;
  2928.  
  2929. extern OSErr Send_GXImageJob(gxSpoolFile theSpoolFile, long *closeOptions)
  2930.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 31, 0xABFB);
  2931. extern OSErr Forward_GXImageJob(gxSpoolFile theSpoolFile, long *closeOptions)
  2932.  TWOWORDINLINE(0x7036, 0xABFB);
  2933. typedef OSErr (*GXImageDocumentProcPtr)(gxSpoolFile theSpoolFile, void *imageData);
  2934.  
  2935. #if GENERATINGCFM
  2936. typedef UniversalProcPtr GXImageDocumentUPP;
  2937. #else
  2938. typedef GXImageDocumentProcPtr GXImageDocumentUPP;
  2939. #endif
  2940.  
  2941. enum {
  2942.     uppGXImageDocumentProcInfo = kCStackBased
  2943.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2944.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxSpoolFile)))
  2945.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(void*)))
  2946. };
  2947.  
  2948. #if GENERATINGCFM
  2949. #define NewGXImageDocumentProc(userRoutine)        \
  2950.         (GXImageDocumentUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXImageDocumentProcInfo, GetCurrentArchitecture())
  2951. #else
  2952. #define NewGXImageDocumentProc(userRoutine)        \
  2953.         ((GXImageDocumentUPP) (userRoutine))
  2954. #endif
  2955.  
  2956. #if GENERATINGCFM
  2957. #define CallGXImageDocumentProc(userRoutine, theSpoolFile, imageData)        \
  2958.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXImageDocumentProcInfo, (theSpoolFile), (imageData))
  2959. #else
  2960. #define CallGXImageDocumentProc(userRoutine, theSpoolFile, imageData)        \
  2961.         (*(userRoutine))((theSpoolFile), (imageData))
  2962. #endif
  2963.  
  2964. typedef GXImageDocumentProcPtr GXImageDocumentProc;
  2965.  
  2966. extern OSErr Send_GXImageDocument(gxSpoolFile theSpoolFile, void *imageData)
  2967.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 32, 0xABFB);
  2968. extern OSErr Forward_GXImageDocument(gxSpoolFile theSpoolFile, void *imageData)
  2969.  TWOWORDINLINE(0x7036, 0xABFB);
  2970. typedef OSErr (*GXImagePageProcPtr)(gxSpoolFile theSpoolFile, long pageNumber, gxFormat theFormat, void *imageData);
  2971.  
  2972. #if GENERATINGCFM
  2973. typedef UniversalProcPtr GXImagePageUPP;
  2974. #else
  2975. typedef GXImagePageProcPtr GXImagePageUPP;
  2976. #endif
  2977.  
  2978. enum {
  2979.     uppGXImagePageProcInfo = kCStackBased
  2980.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  2981.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxSpoolFile)))
  2982.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  2983.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(gxFormat)))
  2984.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(void*)))
  2985. };
  2986.  
  2987. #if GENERATINGCFM
  2988. #define NewGXImagePageProc(userRoutine)        \
  2989.         (GXImagePageUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXImagePageProcInfo, GetCurrentArchitecture())
  2990. #else
  2991. #define NewGXImagePageProc(userRoutine)        \
  2992.         ((GXImagePageUPP) (userRoutine))
  2993. #endif
  2994.  
  2995. #if GENERATINGCFM
  2996. #define CallGXImagePageProc(userRoutine, theSpoolFile, pageNumber, theFormat, imageData)        \
  2997.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXImagePageProcInfo, (theSpoolFile), (pageNumber), (theFormat), (imageData))
  2998. #else
  2999. #define CallGXImagePageProc(userRoutine, theSpoolFile, pageNumber, theFormat, imageData)        \
  3000.         (*(userRoutine))((theSpoolFile), (pageNumber), (theFormat), (imageData))
  3001. #endif
  3002.  
  3003. typedef GXImagePageProcPtr GXImagePageProc;
  3004.  
  3005. extern OSErr Send_GXImagePage(gxSpoolFile theSpoolFile, long pageNumber, gxFormat theFormat, void *imageData)
  3006.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 33, 0xABFB);
  3007. extern OSErr Forward_GXImagePage(gxSpoolFile theSpoolFile, long pageNumber, gxFormat theFormat, void *imageData)
  3008.  TWOWORDINLINE(0x7036, 0xABFB);
  3009. typedef OSErr (*GXRenderPageProcPtr)(gxFormat theFormat, gxShape thePage, gxPageInfoRecord *pageInfo, void *imageData);
  3010.  
  3011. #if GENERATINGCFM
  3012. typedef UniversalProcPtr GXRenderPageUPP;
  3013. #else
  3014. typedef GXRenderPageProcPtr GXRenderPageUPP;
  3015. #endif
  3016.  
  3017. enum {
  3018.     uppGXRenderPageProcInfo = kCStackBased
  3019.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3020.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxFormat)))
  3021.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(gxShape)))
  3022.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(gxPageInfoRecord*)))
  3023.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(void*)))
  3024. };
  3025.  
  3026. #if GENERATINGCFM
  3027. #define NewGXRenderPageProc(userRoutine)        \
  3028.         (GXRenderPageUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXRenderPageProcInfo, GetCurrentArchitecture())
  3029. #else
  3030. #define NewGXRenderPageProc(userRoutine)        \
  3031.         ((GXRenderPageUPP) (userRoutine))
  3032. #endif
  3033.  
  3034. #if GENERATINGCFM
  3035. #define CallGXRenderPageProc(userRoutine, theFormat, thePage, pageInfo, imageData)        \
  3036.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXRenderPageProcInfo, (theFormat), (thePage), (pageInfo), (imageData))
  3037. #else
  3038. #define CallGXRenderPageProc(userRoutine, theFormat, thePage, pageInfo, imageData)        \
  3039.         (*(userRoutine))((theFormat), (thePage), (pageInfo), (imageData))
  3040. #endif
  3041.  
  3042. typedef GXRenderPageProcPtr GXRenderPageProc;
  3043.  
  3044. extern OSErr Send_GXRenderPage(gxFormat theFormat, gxShape thePage, gxPageInfoRecord *pageInfo, void *imageData)
  3045.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 34, 0xABFB);
  3046. extern OSErr Forward_GXRenderPage(gxFormat theFormat, gxShape thePage, gxPageInfoRecord *pageInfo, void *imageData)
  3047.  TWOWORDINLINE(0x7036, 0xABFB);
  3048. typedef OSErr (*GXCreateImageFileProcPtr)(FSSpecPtr pFileSpec, long imageFileOptions, long *theImageFile);
  3049.  
  3050. #if GENERATINGCFM
  3051. typedef UniversalProcPtr GXCreateImageFileUPP;
  3052. #else
  3053. typedef GXCreateImageFileProcPtr GXCreateImageFileUPP;
  3054. #endif
  3055.  
  3056. enum {
  3057.     uppGXCreateImageFileProcInfo = kCStackBased
  3058.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3059.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(FSSpecPtr)))
  3060.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  3061.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long*)))
  3062. };
  3063.  
  3064. #if GENERATINGCFM
  3065. #define NewGXCreateImageFileProc(userRoutine)        \
  3066.         (GXCreateImageFileUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCreateImageFileProcInfo, GetCurrentArchitecture())
  3067. #else
  3068. #define NewGXCreateImageFileProc(userRoutine)        \
  3069.         ((GXCreateImageFileUPP) (userRoutine))
  3070. #endif
  3071.  
  3072. #if GENERATINGCFM
  3073. #define CallGXCreateImageFileProc(userRoutine, pFileSpec, imageFileOptions, theImageFile)        \
  3074.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXCreateImageFileProcInfo, (pFileSpec), (imageFileOptions), (theImageFile))
  3075. #else
  3076. #define CallGXCreateImageFileProc(userRoutine, pFileSpec, imageFileOptions, theImageFile)        \
  3077.         (*(userRoutine))((pFileSpec), (imageFileOptions), (theImageFile))
  3078. #endif
  3079.  
  3080. typedef GXCreateImageFileProcPtr GXCreateImageFileProc;
  3081.  
  3082. extern OSErr Send_GXCreateImageFile(FSSpecPtr pFileSpec, long imageFileOptions, long *theImageFile)
  3083.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 35, 0xABFB);
  3084. extern OSErr Forward_GXCreateImageFile(FSSpecPtr pFileSpec, long imageFileOptions, long *theImageFile)
  3085.  TWOWORDINLINE(0x7036, 0xABFB);
  3086. typedef OSErr (*GXOpenConnectionProcPtr)(void);
  3087.  
  3088. #if GENERATINGCFM
  3089. typedef UniversalProcPtr GXOpenConnectionUPP;
  3090. #else
  3091. typedef GXOpenConnectionProcPtr GXOpenConnectionUPP;
  3092. #endif
  3093.  
  3094. enum {
  3095.     uppGXOpenConnectionProcInfo = kCStackBased
  3096.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3097. };
  3098.  
  3099. #if GENERATINGCFM
  3100. #define NewGXOpenConnectionProc(userRoutine)        \
  3101.         (GXOpenConnectionUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXOpenConnectionProcInfo, GetCurrentArchitecture())
  3102. #else
  3103. #define NewGXOpenConnectionProc(userRoutine)        \
  3104.         ((GXOpenConnectionUPP) (userRoutine))
  3105. #endif
  3106.  
  3107. #if GENERATINGCFM
  3108. #define CallGXOpenConnectionProc(userRoutine)        \
  3109.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXOpenConnectionProcInfo)
  3110. #else
  3111. #define CallGXOpenConnectionProc(userRoutine)        \
  3112.         (*(userRoutine))()
  3113. #endif
  3114.  
  3115. typedef GXOpenConnectionProcPtr GXOpenConnectionProc;
  3116.  
  3117. extern OSErr Send_GXOpenConnection(void)
  3118.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 36, 0xABFB);
  3119. extern OSErr Forward_GXOpenConnection(void)
  3120.  TWOWORDINLINE(0x7036, 0xABFB);
  3121. typedef OSErr (*GXCloseConnectionProcPtr)(void);
  3122.  
  3123. #if GENERATINGCFM
  3124. typedef UniversalProcPtr GXCloseConnectionUPP;
  3125. #else
  3126. typedef GXCloseConnectionProcPtr GXCloseConnectionUPP;
  3127. #endif
  3128.  
  3129. enum {
  3130.     uppGXCloseConnectionProcInfo = kCStackBased
  3131.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3132. };
  3133.  
  3134. #if GENERATINGCFM
  3135. #define NewGXCloseConnectionProc(userRoutine)        \
  3136.         (GXCloseConnectionUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCloseConnectionProcInfo, GetCurrentArchitecture())
  3137. #else
  3138. #define NewGXCloseConnectionProc(userRoutine)        \
  3139.         ((GXCloseConnectionUPP) (userRoutine))
  3140. #endif
  3141.  
  3142. #if GENERATINGCFM
  3143. #define CallGXCloseConnectionProc(userRoutine)        \
  3144.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXCloseConnectionProcInfo)
  3145. #else
  3146. #define CallGXCloseConnectionProc(userRoutine)        \
  3147.         (*(userRoutine))()
  3148. #endif
  3149.  
  3150. typedef GXCloseConnectionProcPtr GXCloseConnectionProc;
  3151.  
  3152. extern OSErr Send_GXCloseConnection(void)
  3153.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 37, 0xABFB);
  3154. extern OSErr Forward_GXCloseConnection(void)
  3155.  TWOWORDINLINE(0x7036, 0xABFB);
  3156. typedef OSErr (*GXStartSendPageProcPtr)(gxFormat theFormat);
  3157.  
  3158. #if GENERATINGCFM
  3159. typedef UniversalProcPtr GXStartSendPageUPP;
  3160. #else
  3161. typedef GXStartSendPageProcPtr GXStartSendPageUPP;
  3162. #endif
  3163.  
  3164. enum {
  3165.     uppGXStartSendPageProcInfo = kCStackBased
  3166.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3167.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxFormat)))
  3168. };
  3169.  
  3170. #if GENERATINGCFM
  3171. #define NewGXStartSendPageProc(userRoutine)        \
  3172.         (GXStartSendPageUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXStartSendPageProcInfo, GetCurrentArchitecture())
  3173. #else
  3174. #define NewGXStartSendPageProc(userRoutine)        \
  3175.         ((GXStartSendPageUPP) (userRoutine))
  3176. #endif
  3177.  
  3178. #if GENERATINGCFM
  3179. #define CallGXStartSendPageProc(userRoutine, theFormat)        \
  3180.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXStartSendPageProcInfo, (theFormat))
  3181. #else
  3182. #define CallGXStartSendPageProc(userRoutine, theFormat)        \
  3183.         (*(userRoutine))((theFormat))
  3184. #endif
  3185.  
  3186. typedef GXStartSendPageProcPtr GXStartSendPageProc;
  3187.  
  3188. extern OSErr Send_GXStartSendPage(gxFormat theFormat)
  3189.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 38, 0xABFB);
  3190. extern OSErr Forward_GXStartSendPage(gxFormat theFormat)
  3191.  TWOWORDINLINE(0x7036, 0xABFB);
  3192. typedef OSErr (*GXFinishSendPageProcPtr)(void);
  3193.  
  3194. #if GENERATINGCFM
  3195. typedef UniversalProcPtr GXFinishSendPageUPP;
  3196. #else
  3197. typedef GXFinishSendPageProcPtr GXFinishSendPageUPP;
  3198. #endif
  3199.  
  3200. enum {
  3201.     uppGXFinishSendPageProcInfo = kCStackBased
  3202.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3203. };
  3204.  
  3205. #if GENERATINGCFM
  3206. #define NewGXFinishSendPageProc(userRoutine)        \
  3207.         (GXFinishSendPageUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFinishSendPageProcInfo, GetCurrentArchitecture())
  3208. #else
  3209. #define NewGXFinishSendPageProc(userRoutine)        \
  3210.         ((GXFinishSendPageUPP) (userRoutine))
  3211. #endif
  3212.  
  3213. #if GENERATINGCFM
  3214. #define CallGXFinishSendPageProc(userRoutine)        \
  3215.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXFinishSendPageProcInfo)
  3216. #else
  3217. #define CallGXFinishSendPageProc(userRoutine)        \
  3218.         (*(userRoutine))()
  3219. #endif
  3220.  
  3221. typedef GXFinishSendPageProcPtr GXFinishSendPageProc;
  3222.  
  3223. extern OSErr Send_GXFinishSendPage(void)
  3224.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 39, 0xABFB);
  3225. extern OSErr Forward_GXFinishSendPage(void)
  3226.  TWOWORDINLINE(0x7036, 0xABFB);
  3227. typedef OSErr (*GXWriteDataProcPtr)(Ptr data, long length);
  3228.  
  3229. #if GENERATINGCFM
  3230. typedef UniversalProcPtr GXWriteDataUPP;
  3231. #else
  3232. typedef GXWriteDataProcPtr GXWriteDataUPP;
  3233. #endif
  3234.  
  3235. enum {
  3236.     uppGXWriteDataProcInfo = kCStackBased
  3237.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3238.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Ptr)))
  3239.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  3240. };
  3241.  
  3242. #if GENERATINGCFM
  3243. #define NewGXWriteDataProc(userRoutine)        \
  3244.         (GXWriteDataUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXWriteDataProcInfo, GetCurrentArchitecture())
  3245. #else
  3246. #define NewGXWriteDataProc(userRoutine)        \
  3247.         ((GXWriteDataUPP) (userRoutine))
  3248. #endif
  3249.  
  3250. #if GENERATINGCFM
  3251. #define CallGXWriteDataProc(userRoutine, data, length)        \
  3252.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXWriteDataProcInfo, (data), (length))
  3253. #else
  3254. #define CallGXWriteDataProc(userRoutine, data, length)        \
  3255.         (*(userRoutine))((data), (length))
  3256. #endif
  3257.  
  3258. typedef GXWriteDataProcPtr GXWriteDataProc;
  3259.  
  3260. extern OSErr Send_GXWriteData(Ptr data, long length)
  3261.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 40, 0xABFB);
  3262. extern OSErr Forward_GXWriteData(Ptr data, long length)
  3263.  TWOWORDINLINE(0x7036, 0xABFB);
  3264. typedef OSErr (*GXBufferDataProcPtr)(Ptr data, long length, long bufferOptions);
  3265.  
  3266. #if GENERATINGCFM
  3267. typedef UniversalProcPtr GXBufferDataUPP;
  3268. #else
  3269. typedef GXBufferDataProcPtr GXBufferDataUPP;
  3270. #endif
  3271.  
  3272. enum {
  3273.     uppGXBufferDataProcInfo = kCStackBased
  3274.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3275.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Ptr)))
  3276.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  3277.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long)))
  3278. };
  3279.  
  3280. #if GENERATINGCFM
  3281. #define NewGXBufferDataProc(userRoutine)        \
  3282.         (GXBufferDataUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXBufferDataProcInfo, GetCurrentArchitecture())
  3283. #else
  3284. #define NewGXBufferDataProc(userRoutine)        \
  3285.         ((GXBufferDataUPP) (userRoutine))
  3286. #endif
  3287.  
  3288. #if GENERATINGCFM
  3289. #define CallGXBufferDataProc(userRoutine, data, length, bufferOptions)        \
  3290.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXBufferDataProcInfo, (data), (length), (bufferOptions))
  3291. #else
  3292. #define CallGXBufferDataProc(userRoutine, data, length, bufferOptions)        \
  3293.         (*(userRoutine))((data), (length), (bufferOptions))
  3294. #endif
  3295.  
  3296. typedef GXBufferDataProcPtr GXBufferDataProc;
  3297.  
  3298. extern OSErr Send_GXBufferData(Ptr data, long length, long bufferOptions)
  3299.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 41, 0xABFB);
  3300. extern OSErr Forward_GXBufferData(Ptr data, long length, long bufferOptions)
  3301.  TWOWORDINLINE(0x7036, 0xABFB);
  3302. typedef OSErr (*GXDumpBufferProcPtr)(gxPrintingBuffer *theBuffer);
  3303.  
  3304. #if GENERATINGCFM
  3305. typedef UniversalProcPtr GXDumpBufferUPP;
  3306. #else
  3307. typedef GXDumpBufferProcPtr GXDumpBufferUPP;
  3308. #endif
  3309.  
  3310. enum {
  3311.     uppGXDumpBufferProcInfo = kCStackBased
  3312.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3313.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxPrintingBuffer*)))
  3314. };
  3315.  
  3316. #if GENERATINGCFM
  3317. #define NewGXDumpBufferProc(userRoutine)        \
  3318.         (GXDumpBufferUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDumpBufferProcInfo, GetCurrentArchitecture())
  3319. #else
  3320. #define NewGXDumpBufferProc(userRoutine)        \
  3321.         ((GXDumpBufferUPP) (userRoutine))
  3322. #endif
  3323.  
  3324. #if GENERATINGCFM
  3325. #define CallGXDumpBufferProc(userRoutine, theBuffer)        \
  3326.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXDumpBufferProcInfo, (theBuffer))
  3327. #else
  3328. #define CallGXDumpBufferProc(userRoutine, theBuffer)        \
  3329.         (*(userRoutine))((theBuffer))
  3330. #endif
  3331.  
  3332. typedef GXDumpBufferProcPtr GXDumpBufferProc;
  3333.  
  3334. extern OSErr Send_GXDumpBuffer(gxPrintingBuffer *theBuffer)
  3335.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 42, 0xABFB);
  3336. extern OSErr Forward_GXDumpBuffer(gxPrintingBuffer *theBuffer)
  3337.  TWOWORDINLINE(0x7036, 0xABFB);
  3338. typedef OSErr (*GXFreeBufferProcPtr)(gxPrintingBuffer *theBuffer);
  3339.  
  3340. #if GENERATINGCFM
  3341. typedef UniversalProcPtr GXFreeBufferUPP;
  3342. #else
  3343. typedef GXFreeBufferProcPtr GXFreeBufferUPP;
  3344. #endif
  3345.  
  3346. enum {
  3347.     uppGXFreeBufferProcInfo = kCStackBased
  3348.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3349.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxPrintingBuffer*)))
  3350. };
  3351.  
  3352. #if GENERATINGCFM
  3353. #define NewGXFreeBufferProc(userRoutine)        \
  3354.         (GXFreeBufferUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFreeBufferProcInfo, GetCurrentArchitecture())
  3355. #else
  3356. #define NewGXFreeBufferProc(userRoutine)        \
  3357.         ((GXFreeBufferUPP) (userRoutine))
  3358. #endif
  3359.  
  3360. #if GENERATINGCFM
  3361. #define CallGXFreeBufferProc(userRoutine, theBuffer)        \
  3362.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXFreeBufferProcInfo, (theBuffer))
  3363. #else
  3364. #define CallGXFreeBufferProc(userRoutine, theBuffer)        \
  3365.         (*(userRoutine))((theBuffer))
  3366. #endif
  3367.  
  3368. typedef GXFreeBufferProcPtr GXFreeBufferProc;
  3369.  
  3370. extern OSErr Send_GXFreeBuffer(gxPrintingBuffer *theBuffer)
  3371.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 43, 0xABFB);
  3372. extern OSErr Forward_GXFreeBuffer(gxPrintingBuffer *theBuffer)
  3373.  TWOWORDINLINE(0x7036, 0xABFB);
  3374. typedef OSErr (*GXCheckStatusProcPtr)(Ptr data, long length, long statusType, gxOwnerSignature owner);
  3375.  
  3376. #if GENERATINGCFM
  3377. typedef UniversalProcPtr GXCheckStatusUPP;
  3378. #else
  3379. typedef GXCheckStatusProcPtr GXCheckStatusUPP;
  3380. #endif
  3381.  
  3382. enum {
  3383.     uppGXCheckStatusProcInfo = kCStackBased
  3384.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3385.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Ptr)))
  3386.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  3387.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long)))
  3388.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(gxOwnerSignature)))
  3389. };
  3390.  
  3391. #if GENERATINGCFM
  3392. #define NewGXCheckStatusProc(userRoutine)        \
  3393.         (GXCheckStatusUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCheckStatusProcInfo, GetCurrentArchitecture())
  3394. #else
  3395. #define NewGXCheckStatusProc(userRoutine)        \
  3396.         ((GXCheckStatusUPP) (userRoutine))
  3397. #endif
  3398.  
  3399. #if GENERATINGCFM
  3400. #define CallGXCheckStatusProc(userRoutine, data, length, statusType, owner)        \
  3401.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXCheckStatusProcInfo, (data), (length), (statusType), (owner))
  3402. #else
  3403. #define CallGXCheckStatusProc(userRoutine, data, length, statusType, owner)        \
  3404.         (*(userRoutine))((data), (length), (statusType), (owner))
  3405. #endif
  3406.  
  3407. typedef GXCheckStatusProcPtr GXCheckStatusProc;
  3408.  
  3409. extern OSErr Send_GXCheckStatus(Ptr data, long length, long statusType, gxOwnerSignature owner)
  3410.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 44, 0xABFB);
  3411. extern OSErr Forward_GXCheckStatus(Ptr data, long length, long statusType, gxOwnerSignature owner)
  3412.  TWOWORDINLINE(0x7036, 0xABFB);
  3413. typedef OSErr (*GXGetDeviceStatusProcPtr)(Ptr cmdData, long cmdSize, Ptr responseData, long *responseSize, Str255 termination);
  3414.  
  3415. #if GENERATINGCFM
  3416. typedef UniversalProcPtr GXGetDeviceStatusUPP;
  3417. #else
  3418. typedef GXGetDeviceStatusProcPtr GXGetDeviceStatusUPP;
  3419. #endif
  3420.  
  3421. enum {
  3422.     uppGXGetDeviceStatusProcInfo = kCStackBased
  3423.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3424.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Ptr)))
  3425.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  3426.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(Ptr)))
  3427.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(long*)))
  3428.          | STACK_ROUTINE_PARAMETER(5, SIZE_CODE(sizeof(/* Str255 is array */ void*)))
  3429. };
  3430.  
  3431. #if GENERATINGCFM
  3432. #define NewGXGetDeviceStatusProc(userRoutine)        \
  3433.         (GXGetDeviceStatusUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXGetDeviceStatusProcInfo, GetCurrentArchitecture())
  3434. #else
  3435. #define NewGXGetDeviceStatusProc(userRoutine)        \
  3436.         ((GXGetDeviceStatusUPP) (userRoutine))
  3437. #endif
  3438.  
  3439. #if GENERATINGCFM
  3440. #define CallGXGetDeviceStatusProc(userRoutine, cmdData, cmdSize, responseData, responseSize, termination)        \
  3441.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXGetDeviceStatusProcInfo, (cmdData), (cmdSize), (responseData), (responseSize), (termination))
  3442. #else
  3443. #define CallGXGetDeviceStatusProc(userRoutine, cmdData, cmdSize, responseData, responseSize, termination)        \
  3444.         (*(userRoutine))((cmdData), (cmdSize), (responseData), (responseSize), (termination))
  3445. #endif
  3446.  
  3447. typedef GXGetDeviceStatusProcPtr GXGetDeviceStatusProc;
  3448.  
  3449. extern OSErr Send_GXGetDeviceStatus(Ptr cmdData, long cmdSize, Ptr responseData, long *responseSize, Str255 termination)
  3450.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 45, 0xABFB);
  3451. extern OSErr Forward_GXGetDeviceStatus(Ptr cmdData, long cmdSize, Ptr responseData, long *responseSize, Str255 termination)
  3452.  TWOWORDINLINE(0x7036, 0xABFB);
  3453. typedef OSErr (*GXFetchTaggedDataProcPtr)(ResType theType, long id, Handle *dataHdl, gxOwnerSignature owner);
  3454.  
  3455. #if GENERATINGCFM
  3456. typedef UniversalProcPtr GXFetchTaggedDataUPP;
  3457. #else
  3458. typedef GXFetchTaggedDataProcPtr GXFetchTaggedDataUPP;
  3459. #endif
  3460.  
  3461. enum {
  3462.     uppGXFetchTaggedDataProcInfo = kCStackBased
  3463.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3464.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(ResType)))
  3465.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  3466.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(Handle*)))
  3467.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(gxOwnerSignature)))
  3468. };
  3469.  
  3470. #if GENERATINGCFM
  3471. #define NewGXFetchTaggedDataProc(userRoutine)        \
  3472.         (GXFetchTaggedDataUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFetchTaggedDataProcInfo, GetCurrentArchitecture())
  3473. #else
  3474. #define NewGXFetchTaggedDataProc(userRoutine)        \
  3475.         ((GXFetchTaggedDataUPP) (userRoutine))
  3476. #endif
  3477.  
  3478. #if GENERATINGCFM
  3479. #define CallGXFetchTaggedDataProc(userRoutine, theType, id, dataHdl, owner)        \
  3480.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXFetchTaggedDataProcInfo, (theType), (id), (dataHdl), (owner))
  3481. #else
  3482. #define CallGXFetchTaggedDataProc(userRoutine, theType, id, dataHdl, owner)        \
  3483.         (*(userRoutine))((theType), (id), (dataHdl), (owner))
  3484. #endif
  3485.  
  3486. typedef GXFetchTaggedDataProcPtr GXFetchTaggedDataProc;
  3487.  
  3488. extern OSErr Send_GXFetchTaggedData(ResType theType, long id, Handle *dataHdl, gxOwnerSignature owner)
  3489.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 46, 0xABFB);
  3490. extern OSErr Forward_GXFetchTaggedData(ResType theType, long id, Handle *dataHdl, gxOwnerSignature owner)
  3491.  TWOWORDINLINE(0x7036, 0xABFB);
  3492. typedef OSErr (*GXGetDTPMenuListProcPtr)(MenuHandle menuHdl);
  3493.  
  3494. #if GENERATINGCFM
  3495. typedef UniversalProcPtr GXGetDTPMenuListUPP;
  3496. #else
  3497. typedef GXGetDTPMenuListProcPtr GXGetDTPMenuListUPP;
  3498. #endif
  3499.  
  3500. enum {
  3501.     uppGXGetDTPMenuListProcInfo = kCStackBased
  3502.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3503.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(MenuHandle)))
  3504. };
  3505.  
  3506. #if GENERATINGCFM
  3507. #define NewGXGetDTPMenuListProc(userRoutine)        \
  3508.         (GXGetDTPMenuListUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXGetDTPMenuListProcInfo, GetCurrentArchitecture())
  3509. #else
  3510. #define NewGXGetDTPMenuListProc(userRoutine)        \
  3511.         ((GXGetDTPMenuListUPP) (userRoutine))
  3512. #endif
  3513.  
  3514. #if GENERATINGCFM
  3515. #define CallGXGetDTPMenuListProc(userRoutine, menuHdl)        \
  3516.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXGetDTPMenuListProcInfo, (menuHdl))
  3517. #else
  3518. #define CallGXGetDTPMenuListProc(userRoutine, menuHdl)        \
  3519.         (*(userRoutine))((menuHdl))
  3520. #endif
  3521.  
  3522. typedef GXGetDTPMenuListProcPtr GXGetDTPMenuListProc;
  3523.  
  3524. extern OSErr Send_GXGetDTPMenuList(MenuHandle menuHdl)
  3525.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 47, 0xABFB);
  3526. extern OSErr Forward_GXGetDTPMenuList(MenuHandle menuHdl)
  3527.  TWOWORDINLINE(0x7036, 0xABFB);
  3528. typedef OSErr (*GXDTPMenuSelectProcPtr)(long id);
  3529.  
  3530. #if GENERATINGCFM
  3531. typedef UniversalProcPtr GXDTPMenuSelectUPP;
  3532. #else
  3533. typedef GXDTPMenuSelectProcPtr GXDTPMenuSelectUPP;
  3534. #endif
  3535.  
  3536. enum {
  3537.     uppGXDTPMenuSelectProcInfo = kCStackBased
  3538.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3539.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(long)))
  3540. };
  3541.  
  3542. #if GENERATINGCFM
  3543. #define NewGXDTPMenuSelectProc(userRoutine)        \
  3544.         (GXDTPMenuSelectUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDTPMenuSelectProcInfo, GetCurrentArchitecture())
  3545. #else
  3546. #define NewGXDTPMenuSelectProc(userRoutine)        \
  3547.         ((GXDTPMenuSelectUPP) (userRoutine))
  3548. #endif
  3549.  
  3550. #if GENERATINGCFM
  3551. #define CallGXDTPMenuSelectProc(userRoutine, id)        \
  3552.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXDTPMenuSelectProcInfo, (id))
  3553. #else
  3554. #define CallGXDTPMenuSelectProc(userRoutine, id)        \
  3555.         (*(userRoutine))((id))
  3556. #endif
  3557.  
  3558. typedef GXDTPMenuSelectProcPtr GXDTPMenuSelectProc;
  3559.  
  3560. extern OSErr Send_GXDTPMenuSelect(long id)
  3561.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 48, 0xABFB);
  3562. extern OSErr Forward_GXDTPMenuSelect(long id)
  3563.  TWOWORDINLINE(0x7036, 0xABFB);
  3564. typedef OSErr (*GXHandleAlertFilterProcPtr)(gxJob theJob, gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *itemHit, Boolean *returnImmed);
  3565.  
  3566. #if GENERATINGCFM
  3567. typedef UniversalProcPtr GXHandleAlertFilterUPP;
  3568. #else
  3569. typedef GXHandleAlertFilterProcPtr GXHandleAlertFilterUPP;
  3570. #endif
  3571.  
  3572. enum {
  3573.     uppGXHandleAlertFilterProcInfo = kCStackBased
  3574.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3575.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxJob)))
  3576.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(gxStatusRecord*)))
  3577.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(DialogPtr)))
  3578.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(EventRecord*)))
  3579.          | STACK_ROUTINE_PARAMETER(5, SIZE_CODE(sizeof(short*)))
  3580.          | STACK_ROUTINE_PARAMETER(6, SIZE_CODE(sizeof(Boolean*)))
  3581. };
  3582.  
  3583. #if GENERATINGCFM
  3584. #define NewGXHandleAlertFilterProc(userRoutine)        \
  3585.         (GXHandleAlertFilterUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandleAlertFilterProcInfo, GetCurrentArchitecture())
  3586. #else
  3587. #define NewGXHandleAlertFilterProc(userRoutine)        \
  3588.         ((GXHandleAlertFilterUPP) (userRoutine))
  3589. #endif
  3590.  
  3591. #if GENERATINGCFM
  3592. #define CallGXHandleAlertFilterProc(userRoutine, theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed)        \
  3593.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXHandleAlertFilterProcInfo, (theJob), (pStatusRec), (pDialog), (theEvent), (itemHit), (returnImmed))
  3594. #else
  3595. #define CallGXHandleAlertFilterProc(userRoutine, theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed)        \
  3596.         (*(userRoutine))((theJob), (pStatusRec), (pDialog), (theEvent), (itemHit), (returnImmed))
  3597. #endif
  3598.  
  3599. typedef GXHandleAlertFilterProcPtr GXHandleAlertFilterProc;
  3600.  
  3601. extern OSErr Send_GXHandleAlertFilter(gxJob theJob, gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *itemHit, Boolean *returnImmed)
  3602.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 49, 0xABFB);
  3603. extern OSErr Forward_GXHandleAlertFilter(gxJob theJob, gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *itemHit, Boolean *returnImmed)
  3604.  TWOWORDINLINE(0x7036, 0xABFB);
  3605. typedef OSErr (*GXJobFormatModeQueryProcPtr)(gxQueryType theQuery, void *srcData, void *dstData);
  3606.  
  3607. #if GENERATINGCFM
  3608. typedef UniversalProcPtr GXJobFormatModeQueryUPP;
  3609. #else
  3610. typedef GXJobFormatModeQueryProcPtr GXJobFormatModeQueryUPP;
  3611. #endif
  3612.  
  3613. enum {
  3614.     uppGXJobFormatModeQueryProcInfo = kCStackBased
  3615.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3616.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxQueryType)))
  3617.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(void*)))
  3618.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(void*)))
  3619. };
  3620.  
  3621. #if GENERATINGCFM
  3622. #define NewGXJobFormatModeQueryProc(userRoutine)        \
  3623.         (GXJobFormatModeQueryUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXJobFormatModeQueryProcInfo, GetCurrentArchitecture())
  3624. #else
  3625. #define NewGXJobFormatModeQueryProc(userRoutine)        \
  3626.         ((GXJobFormatModeQueryUPP) (userRoutine))
  3627. #endif
  3628.  
  3629. #if GENERATINGCFM
  3630. #define CallGXJobFormatModeQueryProc(userRoutine, theQuery, srcData, dstData)        \
  3631.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXJobFormatModeQueryProcInfo, (theQuery), (srcData), (dstData))
  3632. #else
  3633. #define CallGXJobFormatModeQueryProc(userRoutine, theQuery, srcData, dstData)        \
  3634.         (*(userRoutine))((theQuery), (srcData), (dstData))
  3635. #endif
  3636.  
  3637. typedef GXJobFormatModeQueryProcPtr GXJobFormatModeQueryProc;
  3638.  
  3639. extern OSErr Send_GXJobFormatModeQuery(gxQueryType theQuery, void *srcData, void *dstData)
  3640.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 50, 0xABFB);
  3641. extern OSErr Forward_GXJobFormatModeQuery(gxQueryType theQuery, void *srcData, void *dstData)
  3642.  TWOWORDINLINE(0x7036, 0xABFB);
  3643. typedef OSErr (*GXWriteStatusToDTPWindowProcPtr)(gxStatusRecord *pStatusRec, gxDisplayRecord *pDisplay);
  3644.  
  3645. #if GENERATINGCFM
  3646. typedef UniversalProcPtr GXWriteStatusToDTPWindowUPP;
  3647. #else
  3648. typedef GXWriteStatusToDTPWindowProcPtr GXWriteStatusToDTPWindowUPP;
  3649. #endif
  3650.  
  3651. enum {
  3652.     uppGXWriteStatusToDTPWindowProcInfo = kCStackBased
  3653.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3654.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxStatusRecord*)))
  3655.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(gxDisplayRecord*)))
  3656. };
  3657.  
  3658. #if GENERATINGCFM
  3659. #define NewGXWriteStatusToDTPWindowProc(userRoutine)        \
  3660.         (GXWriteStatusToDTPWindowUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXWriteStatusToDTPWindowProcInfo, GetCurrentArchitecture())
  3661. #else
  3662. #define NewGXWriteStatusToDTPWindowProc(userRoutine)        \
  3663.         ((GXWriteStatusToDTPWindowUPP) (userRoutine))
  3664. #endif
  3665.  
  3666. #if GENERATINGCFM
  3667. #define CallGXWriteStatusToDTPWindowProc(userRoutine, pStatusRec, pDisplay)        \
  3668.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXWriteStatusToDTPWindowProcInfo, (pStatusRec), (pDisplay))
  3669. #else
  3670. #define CallGXWriteStatusToDTPWindowProc(userRoutine, pStatusRec, pDisplay)        \
  3671.         (*(userRoutine))((pStatusRec), (pDisplay))
  3672. #endif
  3673.  
  3674. typedef GXWriteStatusToDTPWindowProcPtr GXWriteStatusToDTPWindowProc;
  3675.  
  3676. extern OSErr Send_GXWriteStatusToDTPWindow(gxStatusRecord *pStatusRec, gxDisplayRecord *pDisplay)
  3677.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 51, 0xABFB);
  3678. extern OSErr Forward_GXWriteStatusToDTPWindow(gxStatusRecord *pStatusRec, gxDisplayRecord *pDisplay)
  3679.  TWOWORDINLINE(0x7036, 0xABFB);
  3680. typedef OSErr (*GXInitializeStatusAlertProcPtr)(gxStatusRecord *pStatusRec, DialogPtr *pDialog);
  3681.  
  3682. #if GENERATINGCFM
  3683. typedef UniversalProcPtr GXInitializeStatusAlertUPP;
  3684. #else
  3685. typedef GXInitializeStatusAlertProcPtr GXInitializeStatusAlertUPP;
  3686. #endif
  3687.  
  3688. enum {
  3689.     uppGXInitializeStatusAlertProcInfo = kCStackBased
  3690.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3691.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxStatusRecord*)))
  3692.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(DialogPtr*)))
  3693. };
  3694.  
  3695. #if GENERATINGCFM
  3696. #define NewGXInitializeStatusAlertProc(userRoutine)        \
  3697.         (GXInitializeStatusAlertUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXInitializeStatusAlertProcInfo, GetCurrentArchitecture())
  3698. #else
  3699. #define NewGXInitializeStatusAlertProc(userRoutine)        \
  3700.         ((GXInitializeStatusAlertUPP) (userRoutine))
  3701. #endif
  3702.  
  3703. #if GENERATINGCFM
  3704. #define CallGXInitializeStatusAlertProc(userRoutine, pStatusRec, pDialog)        \
  3705.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXInitializeStatusAlertProcInfo, (pStatusRec), (pDialog))
  3706. #else
  3707. #define CallGXInitializeStatusAlertProc(userRoutine, pStatusRec, pDialog)        \
  3708.         (*(userRoutine))((pStatusRec), (pDialog))
  3709. #endif
  3710.  
  3711. typedef GXInitializeStatusAlertProcPtr GXInitializeStatusAlertProc;
  3712.  
  3713. extern OSErr Send_GXInitializeStatusAlert(gxStatusRecord *pStatusRec, DialogPtr *pDialog)
  3714.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 52, 0xABFB);
  3715. extern OSErr Forward_GXInitializeStatusAlert(gxStatusRecord *pStatusRec, DialogPtr *pDialog)
  3716.  TWOWORDINLINE(0x7036, 0xABFB);
  3717. typedef OSErr (*GXHandleAlertStatusProcPtr)(gxStatusRecord *pStatusRec);
  3718.  
  3719. #if GENERATINGCFM
  3720. typedef UniversalProcPtr GXHandleAlertStatusUPP;
  3721. #else
  3722. typedef GXHandleAlertStatusProcPtr GXHandleAlertStatusUPP;
  3723. #endif
  3724.  
  3725. enum {
  3726.     uppGXHandleAlertStatusProcInfo = kCStackBased
  3727.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3728.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxStatusRecord*)))
  3729. };
  3730.  
  3731. #if GENERATINGCFM
  3732. #define NewGXHandleAlertStatusProc(userRoutine)        \
  3733.         (GXHandleAlertStatusUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandleAlertStatusProcInfo, GetCurrentArchitecture())
  3734. #else
  3735. #define NewGXHandleAlertStatusProc(userRoutine)        \
  3736.         ((GXHandleAlertStatusUPP) (userRoutine))
  3737. #endif
  3738.  
  3739. #if GENERATINGCFM
  3740. #define CallGXHandleAlertStatusProc(userRoutine, pStatusRec)        \
  3741.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXHandleAlertStatusProcInfo, (pStatusRec))
  3742. #else
  3743. #define CallGXHandleAlertStatusProc(userRoutine, pStatusRec)        \
  3744.         (*(userRoutine))((pStatusRec))
  3745. #endif
  3746.  
  3747. typedef GXHandleAlertStatusProcPtr GXHandleAlertStatusProc;
  3748.  
  3749. extern OSErr Send_GXHandleAlertStatus(gxStatusRecord *pStatusRec)
  3750.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 53, 0xABFB);
  3751. extern OSErr Forward_GXHandleAlertStatus(gxStatusRecord *pStatusRec)
  3752.  TWOWORDINLINE(0x7036, 0xABFB);
  3753. typedef OSErr (*GXHandleAlertEventProcPtr)(gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *response);
  3754.  
  3755. #if GENERATINGCFM
  3756. typedef UniversalProcPtr GXHandleAlertEventUPP;
  3757. #else
  3758. typedef GXHandleAlertEventProcPtr GXHandleAlertEventUPP;
  3759. #endif
  3760.  
  3761. enum {
  3762.     uppGXHandleAlertEventProcInfo = kCStackBased
  3763.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3764.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxStatusRecord*)))
  3765.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(DialogPtr)))
  3766.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(EventRecord*)))
  3767.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(short*)))
  3768. };
  3769.  
  3770. #if GENERATINGCFM
  3771. #define NewGXHandleAlertEventProc(userRoutine)        \
  3772.         (GXHandleAlertEventUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandleAlertEventProcInfo, GetCurrentArchitecture())
  3773. #else
  3774. #define NewGXHandleAlertEventProc(userRoutine)        \
  3775.         ((GXHandleAlertEventUPP) (userRoutine))
  3776. #endif
  3777.  
  3778. #if GENERATINGCFM
  3779. #define CallGXHandleAlertEventProc(userRoutine, pStatusRec, pDialog, theEvent, response)        \
  3780.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXHandleAlertEventProcInfo, (pStatusRec), (pDialog), (theEvent), (response))
  3781. #else
  3782. #define CallGXHandleAlertEventProc(userRoutine, pStatusRec, pDialog, theEvent, response)        \
  3783.         (*(userRoutine))((pStatusRec), (pDialog), (theEvent), (response))
  3784. #endif
  3785.  
  3786. typedef GXHandleAlertEventProcPtr GXHandleAlertEventProc;
  3787.  
  3788. extern OSErr Send_GXHandleAlertEvent(gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *response)
  3789.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 54, 0xABFB);
  3790. extern OSErr Forward_GXHandleAlertEvent(gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *response)
  3791.  TWOWORDINLINE(0x7036, 0xABFB);
  3792. typedef void (*GXCleanupStartJobProcPtr)(void);
  3793.  
  3794. #if GENERATINGCFM
  3795. typedef UniversalProcPtr GXCleanupStartJobUPP;
  3796. #else
  3797. typedef GXCleanupStartJobProcPtr GXCleanupStartJobUPP;
  3798. #endif
  3799.  
  3800. enum {
  3801.     uppGXCleanupStartJobProcInfo = kCStackBased
  3802. };
  3803.  
  3804. #if GENERATINGCFM
  3805. #define NewGXCleanupStartJobProc(userRoutine)        \
  3806.         (GXCleanupStartJobUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCleanupStartJobProcInfo, GetCurrentArchitecture())
  3807. #else
  3808. #define NewGXCleanupStartJobProc(userRoutine)        \
  3809.         ((GXCleanupStartJobUPP) (userRoutine))
  3810. #endif
  3811.  
  3812. #if GENERATINGCFM
  3813. #define CallGXCleanupStartJobProc(userRoutine)        \
  3814.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXCleanupStartJobProcInfo)
  3815. #else
  3816. #define CallGXCleanupStartJobProc(userRoutine)        \
  3817.         (*(userRoutine))()
  3818. #endif
  3819.  
  3820. typedef GXCleanupStartJobProcPtr GXCleanupStartJobProc;
  3821.  
  3822. extern void Send_GXCleanupStartJob(void)
  3823.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 55, 0xABFB);
  3824. extern void Forward_GXCleanupStartJob(void)
  3825.  TWOWORDINLINE(0x7036, 0xABFB);
  3826. typedef void (*GXCleanupStartPageProcPtr)(void);
  3827.  
  3828. #if GENERATINGCFM
  3829. typedef UniversalProcPtr GXCleanupStartPageUPP;
  3830. #else
  3831. typedef GXCleanupStartPageProcPtr GXCleanupStartPageUPP;
  3832. #endif
  3833.  
  3834. enum {
  3835.     uppGXCleanupStartPageProcInfo = kCStackBased
  3836. };
  3837.  
  3838. #if GENERATINGCFM
  3839. #define NewGXCleanupStartPageProc(userRoutine)        \
  3840.         (GXCleanupStartPageUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCleanupStartPageProcInfo, GetCurrentArchitecture())
  3841. #else
  3842. #define NewGXCleanupStartPageProc(userRoutine)        \
  3843.         ((GXCleanupStartPageUPP) (userRoutine))
  3844. #endif
  3845.  
  3846. #if GENERATINGCFM
  3847. #define CallGXCleanupStartPageProc(userRoutine)        \
  3848.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXCleanupStartPageProcInfo)
  3849. #else
  3850. #define CallGXCleanupStartPageProc(userRoutine)        \
  3851.         (*(userRoutine))()
  3852. #endif
  3853.  
  3854. typedef GXCleanupStartPageProcPtr GXCleanupStartPageProc;
  3855.  
  3856. extern void Send_GXCleanupStartPage(void)
  3857.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 56, 0xABFB);
  3858. extern void Forward_GXCleanupStartPage(void)
  3859.  TWOWORDINLINE(0x7036, 0xABFB);
  3860. typedef void (*GXCleanupOpenConnectionProcPtr)(void);
  3861.  
  3862. #if GENERATINGCFM
  3863. typedef UniversalProcPtr GXCleanupOpenConnectionUPP;
  3864. #else
  3865. typedef GXCleanupOpenConnectionProcPtr GXCleanupOpenConnectionUPP;
  3866. #endif
  3867.  
  3868. enum {
  3869.     uppGXCleanupOpenConnectionProcInfo = kCStackBased
  3870. };
  3871.  
  3872. #if GENERATINGCFM
  3873. #define NewGXCleanupOpenConnectionProc(userRoutine)        \
  3874.         (GXCleanupOpenConnectionUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCleanupOpenConnectionProcInfo, GetCurrentArchitecture())
  3875. #else
  3876. #define NewGXCleanupOpenConnectionProc(userRoutine)        \
  3877.         ((GXCleanupOpenConnectionUPP) (userRoutine))
  3878. #endif
  3879.  
  3880. #if GENERATINGCFM
  3881. #define CallGXCleanupOpenConnectionProc(userRoutine)        \
  3882.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXCleanupOpenConnectionProcInfo)
  3883. #else
  3884. #define CallGXCleanupOpenConnectionProc(userRoutine)        \
  3885.         (*(userRoutine))()
  3886. #endif
  3887.  
  3888. typedef GXCleanupOpenConnectionProcPtr GXCleanupOpenConnectionProc;
  3889.  
  3890. extern void Send_GXCleanupOpenConnection(void)
  3891.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 57, 0xABFB);
  3892. extern void Forward_GXCleanupOpenConnection(void)
  3893.  TWOWORDINLINE(0x7036, 0xABFB);
  3894. typedef void (*GXCleanupStartSendPageProcPtr)(void);
  3895.  
  3896. #if GENERATINGCFM
  3897. typedef UniversalProcPtr GXCleanupStartSendPageUPP;
  3898. #else
  3899. typedef GXCleanupStartSendPageProcPtr GXCleanupStartSendPageUPP;
  3900. #endif
  3901.  
  3902. enum {
  3903.     uppGXCleanupStartSendPageProcInfo = kCStackBased
  3904. };
  3905.  
  3906. #if GENERATINGCFM
  3907. #define NewGXCleanupStartSendPageProc(userRoutine)        \
  3908.         (GXCleanupStartSendPageUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCleanupStartSendPageProcInfo, GetCurrentArchitecture())
  3909. #else
  3910. #define NewGXCleanupStartSendPageProc(userRoutine)        \
  3911.         ((GXCleanupStartSendPageUPP) (userRoutine))
  3912. #endif
  3913.  
  3914. #if GENERATINGCFM
  3915. #define CallGXCleanupStartSendPageProc(userRoutine)        \
  3916.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXCleanupStartSendPageProcInfo)
  3917. #else
  3918. #define CallGXCleanupStartSendPageProc(userRoutine)        \
  3919.         (*(userRoutine))()
  3920. #endif
  3921.  
  3922. typedef GXCleanupStartSendPageProcPtr GXCleanupStartSendPageProc;
  3923.  
  3924. extern void Send_GXCleanupStartSendPage(void)
  3925.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 58, 0xABFB);
  3926. extern void Forward_GXCleanupStartSendPage(void)
  3927.  TWOWORDINLINE(0x7036, 0xABFB);
  3928. typedef OSErr (*GXDefaultDesktopPrinterProcPtr)(Str31 dtpName);
  3929.  
  3930. #if GENERATINGCFM
  3931. typedef UniversalProcPtr GXDefaultDesktopPrinterUPP;
  3932. #else
  3933. typedef GXDefaultDesktopPrinterProcPtr GXDefaultDesktopPrinterUPP;
  3934. #endif
  3935.  
  3936. enum {
  3937.     uppGXDefaultDesktopPrinterProcInfo = kCStackBased
  3938.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3939.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(/* Str31 is array */ void*)))
  3940. };
  3941.  
  3942. #if GENERATINGCFM
  3943. #define NewGXDefaultDesktopPrinterProc(userRoutine)        \
  3944.         (GXDefaultDesktopPrinterUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultDesktopPrinterProcInfo, GetCurrentArchitecture())
  3945. #else
  3946. #define NewGXDefaultDesktopPrinterProc(userRoutine)        \
  3947.         ((GXDefaultDesktopPrinterUPP) (userRoutine))
  3948. #endif
  3949.  
  3950. #if GENERATINGCFM
  3951. #define CallGXDefaultDesktopPrinterProc(userRoutine, dtpName)        \
  3952.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXDefaultDesktopPrinterProcInfo, (dtpName))
  3953. #else
  3954. #define CallGXDefaultDesktopPrinterProc(userRoutine, dtpName)        \
  3955.         (*(userRoutine))((dtpName))
  3956. #endif
  3957.  
  3958. typedef GXDefaultDesktopPrinterProcPtr GXDefaultDesktopPrinterProc;
  3959.  
  3960. extern OSErr Send_GXDefaultDesktopPrinter(Str31 dtpName)
  3961.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 59, 0xABFB);
  3962. extern OSErr Forward_GXDefaultDesktopPrinter(Str31 dtpName)
  3963.  TWOWORDINLINE(0x7036, 0xABFB);
  3964. typedef OSErr (*GXCaptureOutputDeviceProcPtr)(Boolean capture);
  3965.  
  3966. #if GENERATINGCFM
  3967. typedef UniversalProcPtr GXCaptureOutputDeviceUPP;
  3968. #else
  3969. typedef GXCaptureOutputDeviceProcPtr GXCaptureOutputDeviceUPP;
  3970. #endif
  3971.  
  3972. enum {
  3973.     uppGXCaptureOutputDeviceProcInfo = kCStackBased
  3974.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  3975.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Boolean)))
  3976. };
  3977.  
  3978. #if GENERATINGCFM
  3979. #define NewGXCaptureOutputDeviceProc(userRoutine)        \
  3980.         (GXCaptureOutputDeviceUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCaptureOutputDeviceProcInfo, GetCurrentArchitecture())
  3981. #else
  3982. #define NewGXCaptureOutputDeviceProc(userRoutine)        \
  3983.         ((GXCaptureOutputDeviceUPP) (userRoutine))
  3984. #endif
  3985.  
  3986. #if GENERATINGCFM
  3987. #define CallGXCaptureOutputDeviceProc(userRoutine, capture)        \
  3988.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXCaptureOutputDeviceProcInfo, (capture))
  3989. #else
  3990. #define CallGXCaptureOutputDeviceProc(userRoutine, capture)        \
  3991.         (*(userRoutine))((capture))
  3992. #endif
  3993.  
  3994. typedef GXCaptureOutputDeviceProcPtr GXCaptureOutputDeviceProc;
  3995.  
  3996. extern OSErr Send_GXCaptureOutputDevice(Boolean capture)
  3997.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 60, 0xABFB);
  3998. extern OSErr Forward_GXCaptureOutputDevice(Boolean capture)
  3999.  TWOWORDINLINE(0x7036, 0xABFB);
  4000. typedef OSErr (*GXOpenConnectionRetryProcPtr)(ResType theType, void *aVoid, Boolean *retryopenPtr, OSErr anErr);
  4001.  
  4002. #if GENERATINGCFM
  4003. typedef UniversalProcPtr GXOpenConnectionRetryUPP;
  4004. #else
  4005. typedef GXOpenConnectionRetryProcPtr GXOpenConnectionRetryUPP;
  4006. #endif
  4007.  
  4008. enum {
  4009.     uppGXOpenConnectionRetryProcInfo = kCStackBased
  4010.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  4011.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(ResType)))
  4012.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(void*)))
  4013.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(Boolean*)))
  4014.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(OSErr)))
  4015. };
  4016.  
  4017. #if GENERATINGCFM
  4018. #define NewGXOpenConnectionRetryProc(userRoutine)        \
  4019.         (GXOpenConnectionRetryUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXOpenConnectionRetryProcInfo, GetCurrentArchitecture())
  4020. #else
  4021. #define NewGXOpenConnectionRetryProc(userRoutine)        \
  4022.         ((GXOpenConnectionRetryUPP) (userRoutine))
  4023. #endif
  4024.  
  4025. #if GENERATINGCFM
  4026. #define CallGXOpenConnectionRetryProc(userRoutine, theType, aVoid, retryopenPtr, anErr)        \
  4027.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXOpenConnectionRetryProcInfo, (theType), (aVoid), (retryopenPtr), (anErr))
  4028. #else
  4029. #define CallGXOpenConnectionRetryProc(userRoutine, theType, aVoid, retryopenPtr, anErr)        \
  4030.         (*(userRoutine))((theType), (aVoid), (retryopenPtr), (anErr))
  4031. #endif
  4032.  
  4033. typedef GXOpenConnectionRetryProcPtr GXOpenConnectionRetryProc;
  4034.  
  4035. extern OSErr Send_GXOpenConnectionRetry(ResType theType, void *aVoid, Boolean *retryopenPtr, OSErr anErr)
  4036.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 61, 0xABFB);
  4037. extern OSErr Forward_GXOpenConnectionRetry(ResType theType, void *aVoid, Boolean *retryopenPtr, OSErr anErr)
  4038.  TWOWORDINLINE(0x7036, 0xABFB);
  4039. typedef OSErr (*GXExamineSpoolFileProcPtr)(gxSpoolFile theSpoolFile);
  4040.  
  4041. #if GENERATINGCFM
  4042. typedef UniversalProcPtr GXExamineSpoolFileUPP;
  4043. #else
  4044. typedef GXExamineSpoolFileProcPtr GXExamineSpoolFileUPP;
  4045. #endif
  4046.  
  4047. enum {
  4048.     uppGXExamineSpoolFileProcInfo = kCStackBased
  4049.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  4050.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxSpoolFile)))
  4051. };
  4052.  
  4053. #if GENERATINGCFM
  4054. #define NewGXExamineSpoolFileProc(userRoutine)        \
  4055.         (GXExamineSpoolFileUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXExamineSpoolFileProcInfo, GetCurrentArchitecture())
  4056. #else
  4057. #define NewGXExamineSpoolFileProc(userRoutine)        \
  4058.         ((GXExamineSpoolFileUPP) (userRoutine))
  4059. #endif
  4060.  
  4061. #if GENERATINGCFM
  4062. #define CallGXExamineSpoolFileProc(userRoutine, theSpoolFile)        \
  4063.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXExamineSpoolFileProcInfo, (theSpoolFile))
  4064. #else
  4065. #define CallGXExamineSpoolFileProc(userRoutine, theSpoolFile)        \
  4066.         (*(userRoutine))((theSpoolFile))
  4067. #endif
  4068.  
  4069. typedef GXExamineSpoolFileProcPtr GXExamineSpoolFileProc;
  4070.  
  4071. extern OSErr Send_GXExamineSpoolFile(gxSpoolFile theSpoolFile)
  4072.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 62, 0xABFB);
  4073. extern OSErr Forward_GXExamineSpoolFile(gxSpoolFile theSpoolFile)
  4074.  TWOWORDINLINE(0x7036, 0xABFB);
  4075. typedef OSErr (*GXFinishSendPlaneProcPtr)(void);
  4076.  
  4077. #if GENERATINGCFM
  4078. typedef UniversalProcPtr GXFinishSendPlaneUPP;
  4079. #else
  4080. typedef GXFinishSendPlaneProcPtr GXFinishSendPlaneUPP;
  4081. #endif
  4082.  
  4083. enum {
  4084.     uppGXFinishSendPlaneProcInfo = kCStackBased
  4085.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  4086. };
  4087.  
  4088. #if GENERATINGCFM
  4089. #define NewGXFinishSendPlaneProc(userRoutine)        \
  4090.         (GXFinishSendPlaneUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFinishSendPlaneProcInfo, GetCurrentArchitecture())
  4091. #else
  4092. #define NewGXFinishSendPlaneProc(userRoutine)        \
  4093.         ((GXFinishSendPlaneUPP) (userRoutine))
  4094. #endif
  4095.  
  4096. #if GENERATINGCFM
  4097. #define CallGXFinishSendPlaneProc(userRoutine)        \
  4098.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXFinishSendPlaneProcInfo)
  4099. #else
  4100. #define CallGXFinishSendPlaneProc(userRoutine)        \
  4101.         (*(userRoutine))()
  4102. #endif
  4103.  
  4104. typedef GXFinishSendPlaneProcPtr GXFinishSendPlaneProc;
  4105.  
  4106. extern OSErr Send_GXFinishSendPlane(void)
  4107.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 63, 0xABFB);
  4108. extern OSErr Forward_GXFinishSendPlane(void)
  4109.  TWOWORDINLINE(0x7036, 0xABFB);
  4110. typedef OSErr (*GXDoesPaperFitProcPtr)(gxTrayIndex whichTray, gxPaperType paper, Boolean *fits);
  4111.  
  4112. #if GENERATINGCFM
  4113. typedef UniversalProcPtr GXDoesPaperFitUPP;
  4114. #else
  4115. typedef GXDoesPaperFitProcPtr GXDoesPaperFitUPP;
  4116. #endif
  4117.  
  4118. enum {
  4119.     uppGXDoesPaperFitProcInfo = kCStackBased
  4120.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  4121.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxTrayIndex)))
  4122.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(gxPaperType)))
  4123.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(Boolean*)))
  4124. };
  4125.  
  4126. #if GENERATINGCFM
  4127. #define NewGXDoesPaperFitProc(userRoutine)        \
  4128.         (GXDoesPaperFitUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDoesPaperFitProcInfo, GetCurrentArchitecture())
  4129. #else
  4130. #define NewGXDoesPaperFitProc(userRoutine)        \
  4131.         ((GXDoesPaperFitUPP) (userRoutine))
  4132. #endif
  4133.  
  4134. #if GENERATINGCFM
  4135. #define CallGXDoesPaperFitProc(userRoutine, whichTray, paper, fits)        \
  4136.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXDoesPaperFitProcInfo, (whichTray), (paper), (fits))
  4137. #else
  4138. #define CallGXDoesPaperFitProc(userRoutine, whichTray, paper, fits)        \
  4139.         (*(userRoutine))((whichTray), (paper), (fits))
  4140. #endif
  4141.  
  4142. typedef GXDoesPaperFitProcPtr GXDoesPaperFitProc;
  4143.  
  4144. extern OSErr Send_GXDoesPaperFit(gxTrayIndex whichTray, gxPaperType paper, Boolean *fits)
  4145.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 64, 0xABFB);
  4146. extern OSErr Forward_GXDoesPaperFit(gxTrayIndex whichTray, gxPaperType paper, Boolean *fits)
  4147.  TWOWORDINLINE(0x7036, 0xABFB);
  4148. typedef OSErr (*GXChooserMessageProcPtr)(long message, long caller, StringPtr objName, StringPtr zoneName, ListHandle theList, long p2);
  4149.  
  4150. #if GENERATINGCFM
  4151. typedef UniversalProcPtr GXChooserMessageUPP;
  4152. #else
  4153. typedef GXChooserMessageProcPtr GXChooserMessageUPP;
  4154. #endif
  4155.  
  4156. enum {
  4157.     uppGXChooserMessageProcInfo = kCStackBased
  4158.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  4159.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(long)))
  4160.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  4161.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(StringPtr)))
  4162.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(StringPtr)))
  4163.          | STACK_ROUTINE_PARAMETER(5, SIZE_CODE(sizeof(ListHandle)))
  4164.          | STACK_ROUTINE_PARAMETER(6, SIZE_CODE(sizeof(long)))
  4165. };
  4166.  
  4167. #if GENERATINGCFM
  4168. #define NewGXChooserMessageProc(userRoutine)        \
  4169.         (GXChooserMessageUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXChooserMessageProcInfo, GetCurrentArchitecture())
  4170. #else
  4171. #define NewGXChooserMessageProc(userRoutine)        \
  4172.         ((GXChooserMessageUPP) (userRoutine))
  4173. #endif
  4174.  
  4175. #if GENERATINGCFM
  4176. #define CallGXChooserMessageProc(userRoutine, message, caller, objName, zoneName, theList, p2)        \
  4177.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXChooserMessageProcInfo, (message), (caller), (objName), (zoneName), (theList), (p2))
  4178. #else
  4179. #define CallGXChooserMessageProc(userRoutine, message, caller, objName, zoneName, theList, p2)        \
  4180.         (*(userRoutine))((message), (caller), (objName), (zoneName), (theList), (p2))
  4181. #endif
  4182.  
  4183. typedef GXChooserMessageProcPtr GXChooserMessageProc;
  4184.  
  4185. extern OSErr Send_GXChooserMessage(long message, long caller, StringPtr objName, StringPtr zoneName, ListHandle theList, long p2)
  4186.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 65, 0xABFB);
  4187. extern OSErr Forward_GXChooserMessage(long message, long caller, StringPtr objName, StringPtr zoneName, ListHandle theList, long p2)
  4188.  TWOWORDINLINE(0x7036, 0xABFB);
  4189. typedef OSErr (*GXFindPrinterProfileProcPtr)(gxPrinter thePrinter, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles);
  4190.  
  4191. #if GENERATINGCFM
  4192. typedef UniversalProcPtr GXFindPrinterProfileUPP;
  4193. #else
  4194. typedef GXFindPrinterProfileProcPtr GXFindPrinterProfileUPP;
  4195. #endif
  4196.  
  4197. enum {
  4198.     uppGXFindPrinterProfileProcInfo = kCStackBased
  4199.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  4200.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxPrinter)))
  4201.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(void*)))
  4202.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long)))
  4203.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(gxColorProfile*)))
  4204.          | STACK_ROUTINE_PARAMETER(5, SIZE_CODE(sizeof(long*)))
  4205. };
  4206.  
  4207. #if GENERATINGCFM
  4208. #define NewGXFindPrinterProfileProc(userRoutine)        \
  4209.         (GXFindPrinterProfileUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFindPrinterProfileProcInfo, GetCurrentArchitecture())
  4210. #else
  4211. #define NewGXFindPrinterProfileProc(userRoutine)        \
  4212.         ((GXFindPrinterProfileUPP) (userRoutine))
  4213. #endif
  4214.  
  4215. #if GENERATINGCFM
  4216. #define CallGXFindPrinterProfileProc(userRoutine, thePrinter, searchData, index, returnedProfile, numProfiles)        \
  4217.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXFindPrinterProfileProcInfo, (thePrinter), (searchData), (index), (returnedProfile), (numProfiles))
  4218. #else
  4219. #define CallGXFindPrinterProfileProc(userRoutine, thePrinter, searchData, index, returnedProfile, numProfiles)        \
  4220.         (*(userRoutine))((thePrinter), (searchData), (index), (returnedProfile), (numProfiles))
  4221. #endif
  4222.  
  4223. typedef GXFindPrinterProfileProcPtr GXFindPrinterProfileProc;
  4224.  
  4225. extern OSErr Send_GXFindPrinterProfile(gxPrinter thePrinter, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles)
  4226.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 66, 0xABFB);
  4227. extern OSErr Forward_GXFindPrinterProfile(gxPrinter thePrinter, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles)
  4228.  TWOWORDINLINE(0x7036, 0xABFB);
  4229. typedef OSErr (*GXFindFormatProfileProcPtr)(gxFormat theFormat, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles);
  4230.  
  4231. #if GENERATINGCFM
  4232. typedef UniversalProcPtr GXFindFormatProfileUPP;
  4233. #else
  4234. typedef GXFindFormatProfileProcPtr GXFindFormatProfileUPP;
  4235. #endif
  4236.  
  4237. enum {
  4238.     uppGXFindFormatProfileProcInfo = kCStackBased
  4239.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  4240.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxFormat)))
  4241.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(void*)))
  4242.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long)))
  4243.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(gxColorProfile*)))
  4244.          | STACK_ROUTINE_PARAMETER(5, SIZE_CODE(sizeof(long*)))
  4245. };
  4246.  
  4247. #if GENERATINGCFM
  4248. #define NewGXFindFormatProfileProc(userRoutine)        \
  4249.         (GXFindFormatProfileUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFindFormatProfileProcInfo, GetCurrentArchitecture())
  4250. #else
  4251. #define NewGXFindFormatProfileProc(userRoutine)        \
  4252.         ((GXFindFormatProfileUPP) (userRoutine))
  4253. #endif
  4254.  
  4255. #if GENERATINGCFM
  4256. #define CallGXFindFormatProfileProc(userRoutine, theFormat, searchData, index, returnedProfile, numProfiles)        \
  4257.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXFindFormatProfileProcInfo, (theFormat), (searchData), (index), (returnedProfile), (numProfiles))
  4258. #else
  4259. #define CallGXFindFormatProfileProc(userRoutine, theFormat, searchData, index, returnedProfile, numProfiles)        \
  4260.         (*(userRoutine))((theFormat), (searchData), (index), (returnedProfile), (numProfiles))
  4261. #endif
  4262.  
  4263. typedef GXFindFormatProfileProcPtr GXFindFormatProfileProc;
  4264.  
  4265. extern OSErr Send_GXFindFormatProfile(gxFormat theFormat, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles)
  4266.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 67, 0xABFB);
  4267. extern OSErr Forward_GXFindFormatProfile(gxFormat theFormat, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles)
  4268.  TWOWORDINLINE(0x7036, 0xABFB);
  4269. typedef OSErr (*GXSetPrinterProfileProcPtr)(gxPrinter thePrinter, gxColorProfile oldProfile, gxColorProfile newProfile);
  4270.  
  4271. #if GENERATINGCFM
  4272. typedef UniversalProcPtr GXSetPrinterProfileUPP;
  4273. #else
  4274. typedef GXSetPrinterProfileProcPtr GXSetPrinterProfileUPP;
  4275. #endif
  4276.  
  4277. enum {
  4278.     uppGXSetPrinterProfileProcInfo = kCStackBased
  4279.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  4280.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxPrinter)))
  4281.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(gxColorProfile)))
  4282.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(gxColorProfile)))
  4283. };
  4284.  
  4285. #if GENERATINGCFM
  4286. #define NewGXSetPrinterProfileProc(userRoutine)        \
  4287.         (GXSetPrinterProfileUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSetPrinterProfileProcInfo, GetCurrentArchitecture())
  4288. #else
  4289. #define NewGXSetPrinterProfileProc(userRoutine)        \
  4290.         ((GXSetPrinterProfileUPP) (userRoutine))
  4291. #endif
  4292.  
  4293. #if GENERATINGCFM
  4294. #define CallGXSetPrinterProfileProc(userRoutine, thePrinter, oldProfile, newProfile)        \
  4295.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXSetPrinterProfileProcInfo, (thePrinter), (oldProfile), (newProfile))
  4296. #else
  4297. #define CallGXSetPrinterProfileProc(userRoutine, thePrinter, oldProfile, newProfile)        \
  4298.         (*(userRoutine))((thePrinter), (oldProfile), (newProfile))
  4299. #endif
  4300.  
  4301. typedef GXSetPrinterProfileProcPtr GXSetPrinterProfileProc;
  4302.  
  4303. extern OSErr Send_GXSetPrinterProfile(gxPrinter thePrinter, gxColorProfile oldProfile, gxColorProfile newProfile)
  4304.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 68, 0xABFB);
  4305. extern OSErr Forward_GXSetPrinterProfile(gxPrinter thePrinter, gxColorProfile oldProfile, gxColorProfile newProfile)
  4306.  TWOWORDINLINE(0x7036, 0xABFB);
  4307. typedef OSErr (*GXSetFormatProfileProcPtr)(gxFormat theFormat, gxColorProfile oldProfile, gxColorProfile newProfile);
  4308.  
  4309. #if GENERATINGCFM
  4310. typedef UniversalProcPtr GXSetFormatProfileUPP;
  4311. #else
  4312. typedef GXSetFormatProfileProcPtr GXSetFormatProfileUPP;
  4313. #endif
  4314.  
  4315. enum {
  4316.     uppGXSetFormatProfileProcInfo = kCStackBased
  4317.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  4318.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxFormat)))
  4319.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(gxColorProfile)))
  4320.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(gxColorProfile)))
  4321. };
  4322.  
  4323. #if GENERATINGCFM
  4324. #define NewGXSetFormatProfileProc(userRoutine)        \
  4325.         (GXSetFormatProfileUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSetFormatProfileProcInfo, GetCurrentArchitecture())
  4326. #else
  4327. #define NewGXSetFormatProfileProc(userRoutine)        \
  4328.         ((GXSetFormatProfileUPP) (userRoutine))
  4329. #endif
  4330.  
  4331. #if GENERATINGCFM
  4332. #define CallGXSetFormatProfileProc(userRoutine, theFormat, oldProfile, newProfile)        \
  4333.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXSetFormatProfileProcInfo, (theFormat), (oldProfile), (newProfile))
  4334. #else
  4335. #define CallGXSetFormatProfileProc(userRoutine, theFormat, oldProfile, newProfile)        \
  4336.         (*(userRoutine))((theFormat), (oldProfile), (newProfile))
  4337. #endif
  4338.  
  4339. typedef GXSetFormatProfileProcPtr GXSetFormatProfileProc;
  4340.  
  4341. extern OSErr Send_GXSetFormatProfile(gxFormat theFormat, gxColorProfile oldProfile, gxColorProfile newProfile)
  4342.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 69, 0xABFB);
  4343. extern OSErr Forward_GXSetFormatProfile(gxFormat theFormat, gxColorProfile oldProfile, gxColorProfile newProfile)
  4344.  TWOWORDINLINE(0x7036, 0xABFB);
  4345. typedef OSErr (*GXHandleAltDestinationProcPtr)(Boolean *userCancels);
  4346.  
  4347. #if GENERATINGCFM
  4348. typedef UniversalProcPtr GXHandleAltDestinationUPP;
  4349. #else
  4350. typedef GXHandleAltDestinationProcPtr GXHandleAltDestinationUPP;
  4351. #endif
  4352.  
  4353. enum {
  4354.     uppGXHandleAltDestinationProcInfo = kCStackBased
  4355.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  4356.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Boolean*)))
  4357. };
  4358.  
  4359. #if GENERATINGCFM
  4360. #define NewGXHandleAltDestinationProc(userRoutine)        \
  4361.         (GXHandleAltDestinationUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandleAltDestinationProcInfo, GetCurrentArchitecture())
  4362. #else
  4363. #define NewGXHandleAltDestinationProc(userRoutine)        \
  4364.         ((GXHandleAltDestinationUPP) (userRoutine))
  4365. #endif
  4366.  
  4367. #if GENERATINGCFM
  4368. #define CallGXHandleAltDestinationProc(userRoutine, userCancels)        \
  4369.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXHandleAltDestinationProcInfo, (userCancels))
  4370. #else
  4371. #define CallGXHandleAltDestinationProc(userRoutine, userCancels)        \
  4372.         (*(userRoutine))((userCancels))
  4373. #endif
  4374.  
  4375. typedef GXHandleAltDestinationProcPtr GXHandleAltDestinationProc;
  4376.  
  4377. extern OSErr Send_GXHandleAltDestination(Boolean *userCancels)
  4378.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 70, 0xABFB);
  4379. extern OSErr Forward_GXHandleAltDestination(Boolean *userCancels)
  4380.  TWOWORDINLINE(0x7036, 0xABFB);
  4381. typedef OSErr (*GXSetupPageImageDataProcPtr)(gxFormat theFormat, gxShape thePage, void *imageData);
  4382.  
  4383. #if GENERATINGCFM
  4384. typedef UniversalProcPtr GXSetupPageImageDataUPP;
  4385. #else
  4386. typedef GXSetupPageImageDataProcPtr GXSetupPageImageDataUPP;
  4387. #endif
  4388.  
  4389. enum {
  4390.     uppGXSetupPageImageDataProcInfo = kCStackBased
  4391.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  4392.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxFormat)))
  4393.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(gxShape)))
  4394.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(void*)))
  4395. };
  4396.  
  4397. #if GENERATINGCFM
  4398. #define NewGXSetupPageImageDataProc(userRoutine)        \
  4399.         (GXSetupPageImageDataUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSetupPageImageDataProcInfo, GetCurrentArchitecture())
  4400. #else
  4401. #define NewGXSetupPageImageDataProc(userRoutine)        \
  4402.         ((GXSetupPageImageDataUPP) (userRoutine))
  4403. #endif
  4404.  
  4405. #if GENERATINGCFM
  4406. #define CallGXSetupPageImageDataProc(userRoutine, theFormat, thePage, imageData)        \
  4407.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppGXSetupPageImageDataProcInfo, (theFormat), (thePage), (imageData))
  4408. #else
  4409. #define CallGXSetupPageImageDataProc(userRoutine, theFormat, thePage, imageData)        \
  4410.         (*(userRoutine))((theFormat), (thePage), (imageData))
  4411. #endif
  4412.  
  4413. typedef GXSetupPageImageDataProcPtr GXSetupPageImageDataProc;
  4414.  
  4415. extern OSErr Send_GXSetupPageImageData(gxFormat theFormat, gxShape thePage, void *imageData)
  4416.  FIVEWORDINLINE(0x7032, 0x223C, 0x0000, 71, 0xABFB);
  4417. extern OSErr Forward_GXSetupPageImageData(gxFormat theFormat, gxShape thePage, void *imageData)
  4418.  TWOWORDINLINE(0x7036, 0xABFB);
  4419. /*******************************************************************
  4420.                     Start of old "GXPrintingErrors.h/a/p" interface file.
  4421.             ********************************************************************/
  4422.  
  4423. enum {
  4424.     gxPrintingResultBase        = -510                            /*First QuickDraw GX printing error code.*/
  4425. };
  4426.  
  4427. /*RESULT CODES FOR QUICKDRAW GX PRINTING OPERATIONS*/
  4428. enum {
  4429.     gxAioTimeout                = (gxPrintingResultBase),        /*-510 : Timeout condition occurred during operation*/
  4430.     gxAioBadRqstState            = (gxPrintingResultBase - 1),    /*-511 : Async I/O request in invalid state for operation*/
  4431.     gxAioBadConn                = (gxPrintingResultBase - 2),    /*-512 : Invalid Async I/O connection refnum*/
  4432.     gxAioInvalidXfer            = (gxPrintingResultBase - 3),    /*-513 : Read data transfer structure contained bad values*/
  4433.     gxAioNoRqstBlks                = (gxPrintingResultBase - 4),    /*-514 : No available request blocks to process request*/
  4434.     gxAioNoDataXfer                = (gxPrintingResultBase - 5),    /*-515 : Data transfer structure pointer not specified*/
  4435.     gxAioTooManyAutos            = (gxPrintingResultBase - 6),    /*-516 : Auto status request already active*/
  4436.     gxAioNoAutoStat                = (gxPrintingResultBase - 7),    /*-517 : Connection not configured for auto status*/
  4437.     gxAioBadRqstID                = (gxPrintingResultBase - 8),    /*-518 : Invalid I/O request identifier*/
  4438.     gxAioCantKill                = (gxPrintingResultBase - 9),    /*-519 : Comm. protocol doesn't support I/O term*/
  4439.     gxAioAlreadyExists            = (gxPrintingResultBase - 10),    /*-520 : Protocol spec. data already specified*/
  4440.     gxAioCantFind                = (gxPrintingResultBase - 11),    /*-521 : Protocol spec. data does not exist*/
  4441.     gxAioDeviceDisconn            = (gxPrintingResultBase - 12),    /*-522 : Machine disconnected from printer*/
  4442.     gxAioNotImplemented            = (gxPrintingResultBase - 13),    /*-523 : Function not implemented*/
  4443.     gxAioOpenPending            = (gxPrintingResultBase - 14),    /*-524 : Opening a connection for protocol, but another open pending*/
  4444.     gxAioNoProtocolData            = (gxPrintingResultBase - 15),    /*-525 : No protocol specific data specified in request*/
  4445.     gxAioRqstKilled                = (gxPrintingResultBase - 16),    /*-526 : I/O request was terminated*/
  4446.     gxBadBaudRate                = (gxPrintingResultBase - 17),    /*-527 : Invalid baud rate specified*/
  4447.     gxBadParity                    = (gxPrintingResultBase - 18),    /*-528 : Invalid parity specified*/
  4448.     gxBadStopBits                = (gxPrintingResultBase - 19),    /*-529 : Invalid stop bits specified*/
  4449.     gxBadDataBits                = (gxPrintingResultBase - 20),    /*-530 : Invalid data bits specified*/
  4450.     gxBadPrinterName            = (gxPrintingResultBase - 21),    /*-531 : Bad printer name specified*/
  4451.     gxAioBadMsgType                = (gxPrintingResultBase - 22),    /*-532 : Bad masType field in transfer info structure*/
  4452.     gxAioCantFindDevice            = (gxPrintingResultBase - 23),    /*-533 : Cannot locate target device*/
  4453.     gxAioOutOfSeq                = (gxPrintingResultBase - 24),    /*-534 : Non-atomic SCSI requests submitted out of sequence*/
  4454.     gxPrIOAbortErr                = (gxPrintingResultBase - 25),    /*-535 : I/O operation aborted*/
  4455.     gxPrUserAbortErr            = (gxPrintingResultBase - 26),    /*-536 : User aborted*/
  4456.     gxCantAddPanelsNowErr        = (gxPrintingResultBase - 27),    /*-537 : Can only add panels during driver switch or dialog setup*/
  4457.     gxBadxdtlKeyErr                = (gxPrintingResultBase - 28),    /*-538 : Unknown key for xdtl - must be radiobutton, etc*/
  4458.     gxXdtlItemOutOfRangeErr        = (gxPrintingResultBase - 29),    /*-539 : Referenced item does not belong to panel*/
  4459.     gxNoActionButtonErr            = (gxPrintingResultBase - 30),    /*-540 : Action button is nil*/
  4460.     gxTitlesTooLongErr            = (gxPrintingResultBase - 31),    /*-541 : Length of buttons exceeds alert maximum width*/
  4461.     gxUnknownAlertVersionErr    = (gxPrintingResultBase - 32),    /*-542 : Bad version for printing alerts*/
  4462.     gxGBBufferTooSmallErr        = (gxPrintingResultBase - 33),    /*-543 : Buffer too small.*/
  4463.     gxInvalidPenTable            = (gxPrintingResultBase - 34),    /*-544 : Invalid vector driver pen table.*/
  4464.     gxIncompletePrintFileErr    = (gxPrintingResultBase - 35),    /*-545 : Print file was not completely spooled*/
  4465.     gxCrashedPrintFileErr        = (gxPrintingResultBase - 36),    /*-546 : Print file is corrupted*/
  4466.     gxInvalidPrintFileVersion    = (gxPrintingResultBase - 37),    /*-547 : Print file is incompatible with current QuickDraw GX version*/
  4467.     gxSegmentLoadFailedErr        = (gxPrintingResultBase - 38),    /*-548 : Segment loader error*/
  4468.     gxExtensionNotFoundErr        = (gxPrintingResultBase - 39),    /*-549 : Requested printing extension could not be found*/
  4469.     gxDriverVersionErr            = (gxPrintingResultBase - 40),    /*-550 : Driver too new for current version of QuickDraw GX*/
  4470.     gxImagingSystemVersionErr    = (gxPrintingResultBase - 41),    /*-551 : Imaging system too new for current version of QuickDraw GX*/
  4471.     gxFlattenVersionTooNew        = (gxPrintingResultBase - 42),    /*-552 : Flattened object format too new for current version of QDGX*/
  4472.     gxPaperTypeNotFound            = (gxPrintingResultBase - 43),    /*-553 : Requested papertype could not be found*/
  4473.     gxNoSuchPTGroup                = (gxPrintingResultBase - 44),    /*-554 : Requested papertype group could not be found*/
  4474.     gxNotEnoughPrinterMemory    = (gxPrintingResultBase - 45),    /*-555 : Printer does not have enough memory for fonts in document*/
  4475.     gxDuplicatePanelNameErr        = (gxPrintingResultBase - 46),    /*-556 : Attempt to add more than 10 panels with the same name*/
  4476.     gxExtensionVersionErr        = (gxPrintingResultBase - 47)    /*-557 : Extension too new for current version of QuickDraw GX*/
  4477. };
  4478.  
  4479.  
  4480. #if PRAGMA_IMPORT_SUPPORTED
  4481. #pragma import off
  4482. #endif
  4483.  
  4484. #if PRAGMA_ALIGN_SUPPORTED
  4485. #pragma options align=reset
  4486. #endif
  4487.  
  4488. #ifdef __cplusplus
  4489. }
  4490. #endif
  4491.  
  4492. #endif /* __GXPRINTING__ */
  4493.